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