Skip to content

shiddiqeuy/Java-Abstraction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Java-Abstraction

Example of OOP Abstraction in Java

In OOP ( Object Oriented Programming ) Abstraction is a process hiding an implementation details from user , only the functionality will provided to user.

In Java Abstraction is achieved using Abstract classes and Interface.An abstract class is a class which is incomplete. You cannot create an instance of an abstract class in Java. They are provided to define default behavior and ensured that client of that class should adore to those contract which are defined inside the abstract class. In order to use it, you must extend and implement their abstract methods.

alt tag alt tag

this repo will implement Employee Abstraction and Salary class the easy way.

alt tag

first we create Employee class as abstract then we exntend salary class from Abstract class employee the we run the AbstactDemo class to know the result

the result are below

alt tag

About

Example of OOP Abstraction in Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages