Question: 20. (A) Explain the differences between a class, an abstract class and an interface in Java. 21. (B) Explain what is meant by (dynamic) polymorphism

 20. (A) Explain the differences between a class, an abstract class

20. (A) Explain the differences between a class, an abstract class and an interface in Java. 21. (B) Explain what is meant by (dynamic) polymorphism in OOP and explain why it is useful, illustrating your answer with an example. 22. (A) A programming language designer proposes adding 'selective inheritance' whereby a programmer manually specifies which methods or fields are inherited by any subclasses. Comment on this idea

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!