



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Multiple choice questions related to polymorphism and abstract classes in object-oriented programming. Topics include encapsulation, inheritance, binding types, method overriding, and abstract methods. Students can use this document for self-study, exam preparation, or as a supplement to lecture notes.
Typology: Papers
1 / 5
This page cannot be seen from the preview
Don't miss anything!




(c) late (d) none of the above
Explain the difference between early and late binding. What is polymorphism and how does it relate to late binding? What are the advantages of polymorphism? Write a decision statement to determine if an object should be downcast. Describe the limitations of the copy constructor. What is an abstract method? What is wrong with the following method definition? public abstract void doSomething(int count)
Override the clone method inherited in the Dress Shoes class created in number 11above. Override the clone method inherited in the Tennis Shoes class created in number 12 above. Override the clone method inherited in the Boots class created in number 13 above.