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.
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 accessin...