User Tools

Site Tools


notes:cprog:fall2021:projects:oop1

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
notes:cprog:fall2021:projects:oop1 [2021/11/05 03:59] – [Parent-Child Relationships] hhemlernotes:cprog:fall2021:projects:oop1 [2021/11/05 04:01] (current) – [References] hhemler
Line 92: Line 92:
  
 When something has multiple parents it is called multiple inheritance. When there is more than one tier of inheritance (grandparents) it is called multilevel inheritance. When something has multiple children it is called hierarchical inheritance. When multiple of these occur it is called hybrid inheritance. When something has multiple parents it is called multiple inheritance. When there is more than one tier of inheritance (grandparents) it is called multilevel inheritance. When something has multiple children it is called hierarchical inheritance. When multiple of these occur it is called hybrid inheritance.
 +
 +Inheritance allows us to reuse classes by having other classes inherit their members.
  
 It is possible to make a class non-subclassable (sterile) in C++ with the "final" keyword. It is possible to make a class non-subclassable (sterile) in C++ with the "final" keyword.
Line 110: Line 112:
   * https://www.learncpp.com/cpp-tutorial/basic-inheritance-in-c/   * https://www.learncpp.com/cpp-tutorial/basic-inheritance-in-c/
   * https://www.programiz.com/cpp-programming/public-protected-private-inheritance/   * https://www.programiz.com/cpp-programming/public-protected-private-inheritance/
-  * https://social.msdn.microsoft.com/Forums/sqlserver/en-US/8e65af25-8281-4352-8418-4bd2bf614ba5/smart-pointers-parent-child-relationships?forum=vcgener 
   * https://www.w3schools.com/cpp/cpp_inheritance.asp   * https://www.w3schools.com/cpp/cpp_inheritance.asp
   * https://www.tutorialspoint.com/cplusplus/cpp_inheritance.htm   * https://www.tutorialspoint.com/cplusplus/cpp_inheritance.htm
notes/cprog/fall2021/projects/oop1.1636084755.txt.gz · Last modified: 2021/11/05 03:59 by hhemler