Encapsulation and Abstraction – Oops Concepts | Java Tutorial For Beginners | Tech Game

Java



Abstract classes and Abstract methods :

An abstract class is a class that is declared with abstract keyword.

An abstract method is a method that is declared without an implementation.

An abstract class may or may not have all abstract methods. Some of them can be concrete methods

A method defined abstract must always be redefined in the subclass,thus making overriding compulsory OR either make subclass itself abstract.

Any class that contains one or more abstract methods must also…

Leave a Reply

Your email address will not be published. Required fields are marked *