Inheritance is an important object-oriented concept. It allows you to build a hierarchy of related classes and to reuse functionality defined in existing classes.
basically the main advantage of object orineted approach is code reusabilty which help us to improve performance by using less memory for computation.inharitance provide us code reusabilty by accessing method of base class in the derived class instead of creating same methods again and again. other thing is we can accomodate changes easily by making change in the method of base class......... i hope u got my point
Classes are inherit from another class. Basically we are using OOPS for reusability so inhertiance means deriving new class from base class it occupies less memory.