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 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
Get step-by-step solutions from verified subject matter experts
