Java: Abstract Class
Abstraction in Java
Abstraction is a concept to show only essential detail i.e hide internal detail and show functionality in simple terms. To achieve abstraction in Java, use abstract class or interface.
Example: In ATM we don’t know how internally work. In a Car don’t know about the internal mechanism.
Ways to achieve Abstraction
We can achieve abstraction in two ways:
Abstract class:abstractio…
View On WordPress

















