Question: Q1) A) Discuss the ways in which inheritance promotes software reuse, saves time during program development and helps prevent errors. B)- How does polymorphism enable

Q1)
A) Discuss the ways in which inheritance promotes software reuse, saves time during program development and helps prevent errors.
B)- How does polymorphism enable you to program in the general rather than in the specific? Discuss the key advantages of programming in the general.
C)What are abstract methods? Describe the circumstances in which an abstract method would be appropriate
D)How does polymorphism promote extensibility?
E)Discuss four ways in which you can assign superclass and subclass references to variables of superclass and subclass types.
F)Compare and contrast abstract classes and interfaces. Why would you use an abstract class? Why would you use an interface?
G)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!