Flashcards
Sem título
Flashcards do conjunto (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—
Informações
- Descrição
- FlashCards sobre Sem título, criado por asdf sdf em 11-12-2018.
- Criado por
- asdf sdf
- Visualizações
- 0
- Avaliação