Abstract Class Final Class
Abstract Class Final Class
Declared using the keyword abstract Declared using the keyword final
Class Interface
Example: Example:
A super-class method that is declared as Abstract methods are methods for which
final cannot be overridden in the sub no coding is defined; and the subclass can
class. provide its own coding.
Hence, final keyword is used to prevent To declare an abstract method, the general
method overridden. form is –