- abstract keyword enables you to create classes and class members that are incomplete and must be implemented in a derived class
Purpose
The purpose of an abstract class is to provide a common definition of a base class that multiple derived classes can share.
Characteristics
They are classes that cannot be instantiated.
An abstract class contain either abstract methods or non abstract methods.
A non abstract class derived from abstract class MUST include actual implementation of all inherited members.
ABSTRACT METHOD
Characteristics
Abstract methods have no implementation, so the method definition is followed by a semicolon instead of a normal method block.
Derived classes of the abstract class must implement all abstract methods.
Implementation is provided by overriding method.
Cannot be private.
Cannot be static.
Abstract method cannot be contained in non abstract class.
The purpose of an abstract class is to provide a common definition of a base class that multiple derived classes can share.
Characteristics
They are classes that cannot be instantiated.
An abstract class contain either abstract methods or non abstract methods.
A non abstract class derived from abstract class MUST include actual implementation of all inherited members.
ABSTRACT METHOD
Characteristics
Abstract methods have no implementation, so the method definition is followed by a semicolon instead of a normal method block.
Derived classes of the abstract class must implement all abstract methods.
Implementation is provided by overriding method.
Cannot be private.
Cannot be static.
Abstract method cannot be contained in non abstract class.
