Question: 1- Discuss the ways in which inheritance promotes software reuse, saves time during program development and helps prevent errors. 2- How does polymorphism enable you

 1- Discuss the ways in which inheritance promotes software reuse, saves

1- Discuss the ways in which inheritance promotes software reuse, saves time during program development and helps prevent errors. 2- How does polymorphism enable you to program in the general rather than in the specific? Discuss the key advantages of programming in the general. 3- What are abstract methods? Describe the circumstances in which an abstract method would be appropriate. 4- How does polymorphism promote extensibility? 5- Discuss four ways in which you can assign superclass and subclass references to variables of superclass and subclass types. 6- Compare and contrast abstract classes and interfaces. Why would you use an abstract class? Why would you use an interface? 7- Explain why inserting additional elements into a vector object whose current size is less than its capacity is a relatively fast operation and why inserting additional elements into a vector object whose current size is at capacity is a relatively slow operation

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!