java abstrraction

 java Abstraction (4 pillar of OOPs :   Encapsulation ,polymorphism, Inhertiance, Abstraction)



java abstraction

There are Four Pillars of OOP. i.e. Polymorphism, Abstraction, Inheritance and Encapsulation. We Will Explore Abstraction.

 Data abstraction is the process of hiding certain details and showing only essential information to the  user.

 Abstraction can be achieved with either abstract classes or interfaces.

Abstract Class

Any Class that Contains one or more abstract Methods must also be Declared with abstract Keyword.

Abstract method can only be used in an abstract class, and it does not have a body. The body is provided by the subclass (inherited from).

An abstract class can have both abstract and regular methods




Comments