tBane dodał nowy post w wątku: Zalety polimorfizmu dynamicznego w programowaniu obiektowym
Chodzi Ci o coś takiego?
Kopiuj
class Unit { public: Unit(); ~Unit(); virtual void function(); }; class Player : public Unit { public: Player(); ~Player(); void function(); }; class Bot : public Unit { public: Bot(); ~Bot(); void function(); };