Flashcards
Untitled
Cards in this deck (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—
Information
- Description
- Flashcards on Untitled, created by asdf sdf on 11/12/2018.
- Created by
- asdf sdf
- Views
- 0
- Rating