Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 711 Bytes

File metadata and controls

15 lines (11 loc) · 711 Bytes

Polimorfizm


Polimorfizm

  • Funkcje wirtualne
  • Funkcje czysto wirtualne (=0)
  • Klasy abstrakcyjne
    • mają co najmniej jedną funkcję czysto wirtualną
  • vtable and vptr
    • implementacja polimorfizmu w C++
    • konstruktor klasy pochodnej nadpisuje wskaźniki na funkcje klas bazowych w vtable