Abstraction in java programming refers to the abstract class in OOP(Object Oriented Programming). This class can be instantiated and still have access to the fields, the methods and the constructors. To utilize the Abstract class you would need to use the abstract keyword to declare the class as being abstract. You will need to declare the keyword in the class. For example if you have a class
. Employee, you would make the class abstract by declaring public abstract class Employee. After you declare the abstract class, you would then declare your variables and your statements. You can even extend the Employee class if you choose to. You would do it normally, not any differently. You can also declare abstract methods in your main class. The abstract method will only have a method signature, but no body. It does not have a definition either. It's signature is just followed by a semicolon. An abstract method is declared for example as public abstract double employeePayRate(); .