Abstraction in Java
Abstraction Abstraction: Hiding of implementation and using the functionality is called as abstraction. Abstraction in java can be achieved by using a special classes called "Abstract classes". Abstract Classes: These are same as classes but have two types of methods namely : Concrete Methods Abstract Methods 1.Concrete Methods : The method which have declaration along with the body/logic of the method such Methods are called as Concrete Methods. Syntax: class ClassName { <datatype> methodName() { Statements; } } Example: class ConctreteClassName { void concrete() { System.out.println("concrete Method"); } } 2.Abstract Method: The method which have no body or logic Such methods are called as Abstract Methods. Syntax: abstract class ClassName { abstract ...