cpp:polymorphism

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
cpp:polymorphism [2017/04/25 12:55]
gthanos [Pure Virtual συναρτήσεις και abstract κλάσεις]
cpp:polymorphism [2017/05/11 09:13]
gthanos [Δυναμικός Πολυμορφισμός]
Line 40: Line 40:
   public:   public:
     virtual unsigned int getArea();     virtual unsigned int getArea();
-}+};
 unsigned int Shape2D::getArea() { return 0; } unsigned int Shape2D::getArea() { return 0; }
 </code> </code>
cpp/polymorphism.txt · Last modified: 2020/04/15 08:48 (external edit)