Koristi se u objektno orijentisanim programskim jezicima kada jedan objekat kopira osobine drugog objekta (ovde se objekat odnosi na blok programskog koda koji izvršava određeni zadatak). Programerima se sviđa ideja nasleđivanja, pošto ih ona spašava od ponovnog unošenja istih linija programskog koda.
inheritance / ɪnherətəns /
1. The transfer of the characteristics of a class in object-oriented programming to other classes derived from it. For example, if “vegetable” is a class, the classes “legume” and “root” can be derived from it, and each will inherit the properties of the “vegetable” class: name, growing season, and so on. See also class, object-oriented programming.
2. The transfer of certain properties, such as open files, from a parent program or process to another program or process that the parent causes to run. See also child (definition 1).
The capability to create new objects that maintain the properties and behavior of ancestor objects. This concept enables you to create object hierarchies such as VCL-first creating generic objects and then creating more specific descendants of those objects that have more narrow functionality.
The concept of classes automatically containing the variables and methods defined in their supertypes.