1.

Define Abstract Class?

Answer»

A CLASS which contains the abstract keyword in its declaration is known as abstract class. It can have abstract and non-abstract methods (METHOD with body).
1. This class can have public, private, PROTECTED or constants and default variables.
2. It needs to be extended and its method implemented. It cannot be instantiated.
3. If a class has at LEAST one abstract method, then the class must be declared abstract.

A class which contains the abstract keyword in its declaration is known as abstract class. It can have abstract and non-abstract methods (method with body).
1. This class can have public, private, protected or constants and default variables.
2. It needs to be extended and its method implemented. It cannot be instantiated.
3. If a class has at least one abstract method, then the class must be declared abstract.



Discussion

No Comment Found