Karteikarten
Ohne Titel
Karten in diesem Stapel (2)
- 1What is the difference between Polymorphism and Inheritance?*INHERITANCE*
Inheritance allows for sub-classes derived from a "Parent" class.
Child classes only inherit Public and Protected members from the parent.
Child classes can override members of the parent class.
*POLYMORPHISM*
Polymorphism allows for "late binding" inherited class types at run-time.
Only virtual members of the parent class will be overidden by the child class.
Typically implemented with pointers. - 2—
Informationen
- Beschreibung
- Karteikarten am Ohne Titel, erstellt von asdf sdf am 11/12/2018.
- Erstellt von
- asdf sdf
- Aufrufe
- 0
- Bewertung