📝 What is an Abstract Class?



The abstract modifier indicates that the thing being modified has a missing or incomplete implementation. The abstract modifier can be used with classes, methods, properties, indexers, and events.



An Abstract class is a class which is denoted by abstract keyword and can be used only as a Base class.



Abstract classes have the following features:



🔸 An abstract class cannot be instantiated.



🔸 An abstract class may contain abstract methods and accessors.



🔸 It is not possible to modify an abstract class with the sealed modifier because the two modifiers have opposite meanings. The sealed modifier prevents a class from being inherited and the abstract modifier requires a class to be inherited.



🔸 A non-abstract class derived from an abstract class must include actual implementations of all inherited abstract methods and accessors.



#post