Question:
(a) (i) Explain the concept of inheritance. Illustrate your answer with a suitable Java example.
(ii) Java does not support multiple inheritance but does provide the concept of ‘interface'. Explain how interfaces can help a programmer to implement multiple inheritance in their programs. Illustrate with suitable Java examples.
(b) What is an abstract class in Java? Explain the importance of implementing these classes in programs. Illustrate with an example of your own.
(c) Using a suitable Java example explain the term polymorphism.