Abstraction in Java is used to hide certain details and only show the essential features of the object. In other words, it deals with the outside view of an object (interface).
An abstract class contains an abstract keyword. An abstract class can or cannot have abstract methods.
A method that is declared as abstract and does not have implementation is known as abstract method.
An abstract class with abstract method:-
abstract void run();
class Havells extends Fan
public static void main(String args)
Fan obj = new Havells();