Browsed by
Category: Uncategorized

What is an abstract class? Explain concepts of aggregation, generalization and specialization with the help of suitable example. [MCS-219, Q5]

What is an abstract class? Explain concepts of aggregation, generalization and specialization with the help of suitable example. [MCS-219, Q5]

Abstract Class: An abstract class is a class that cannot be instantiated (object cannot be created) and is used as a base class for other classes.It may contain abstract methods (methods without implementation) as well as concrete methods (methods with implementation). Key Points: