Puedes seguirnos en

BUSCADOR

Engineering

Benefits of Inheritance in OOP

Inheritance is not just simply about creating various derived classes trough a base class. There are some other benefits of using Inheritance in Object Oriented languages.

  • When inherited from another class, the code that provides a behavior required in the derived class need not have to be rewritten. Benefits of reusable code include increased reliability and a decreased maintenance cost because of sharing of the code by all its users.
  • When multiple classes inherit from the same super class, it guarantees that the behavior they inherit will be the same in all cases.
  • Inheritance permits the construction of reusable software components.
  • It provides improved code organization and reliability.
  • Code redundancy can be avoided.

Escrito por

Administrador de ENGGDRCAOS. Canal dedicado especialmente a la formación del estudiante que aspira a ser ingeniero. Todos los videos son Ingles. Apasionado del universo Apple, estudiante de Ingeniería y Gamer por vocación.

Publicidad

ARTÍCULOS RELACIONADOS

Engineering

Function prototyping is one of the key improvements added to the C++ functions. When a function call is encountered, the compiler checks the function...

Engineering

Destructors is used to destroy the objects that have been created by a constructor. The destructor is member function whose name is the same...

Engineering

When virtual functions are created for implementing late binding, there are some basic rules that satisfy the compiler requirements: The virtual function must be...

Engineering

Break statement: The break statement is used to break control in the loops. Or in general statement it is used to break the sequence....