This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | Next revision Both sides next revision | ||
|
cpp:polymorphism [2017/04/25 12:53] gthanos [Pure Virtual συναρτήσεις και abstract κλάσεις] |
cpp:polymorphism [2017/04/25 12:54] gthanos [Pure Virtual συναρτήσεις και abstract κλάσεις] |
||
|---|---|---|---|
| Line 115: | Line 115: | ||
| Επειδή η κλάση //Shape2D// είναι πλέον // | Επειδή η κλάση //Shape2D// είναι πλέον // | ||
| + | <code cpp ShapeUsage.cpp> | ||
| + | #include " | ||
| + | #include " | ||
| + | int main() { | ||
| + | Rectangle rectangle(0xffffff, | ||
| + | Shape2D & | ||
| + | cout << " | ||
| + | cout << " | ||
| + | cout << " | ||
| + | } | ||
| + | </ | ||