Pages

Showing posts with label abstraction. Show all posts
Showing posts with label abstraction. Show all posts

Friday, May 8, 2020

Abstraction in Java

Index:

1. What is Abstraction?
2. How to achieve Abstraction?
3. What is Interface?
4. What is Abstract class ?
5. Difference between Abstract class and Interface.
6. When to use interface, abstract class and concrete class?
7. Advantages of Abstraction.



1. What is Abstraction?

One of the pillar in object oriented programming. Exploring only required things to user. 

E.g.  ATM GUI Screen. We can see all options to check balance, withdraw money etc but can’t see code behind that. This shows that it will explore only required thing to user not internal implementations.


2. How to achieve Abstraction?

Abstraction in OOP can be achieved as below:

How to achieve Abstraction in java?