where child class inherits parent class features with its own features . that we don't have to write code again and again Parent class ---- class human being Child class --- class male extends human being
Object Oriented Programming is used to implement real world entities like inheritance, hiding, polymorphism etc in programming. Class :- it is a definition ---- mamals >human beings > male >female Object :- male guri=new male();