Java - Abstraction
by, 04-26-2012 at 07:00 PM (599 Views)
Abstraction means an ability to create the class abstract, in OOP. Basically, an abstract class is not able to get instantiated. All remaining class functionalities are still present and its methods, fields & constructors are accessible in similar way. Just abstract class’s instance can’t be created.
If it is not possible to instantiate a class and it is abstract then such kind of class has no particular uses, until it gets subclasses. Typically, in this way abstract class will come, during design phase. Common functionality of child classes’ collection is present in a parent class, however parent class is abstract to get used.