Showing posts with label Abstraction. Show all posts
Showing posts with label Abstraction. Show all posts
Abstraction
- Abstraction is a process of hiding data.
- We can have abstraction by writing the key word Abstract.
- An abstract class can have both concrete and abstract methods. Methods that are declared as abstract in an abstract class must be implemented in the sub classes when an abstract class is extended.
- The abstract class can be used to provide some implementation of the interface. In such case, the end user may not be forced to override all the methods of the interface.
Subscribe to:
Posts
(
Atom
)