¡@

Home 

c++ Programming Glossary: fightwho

Understanding double dispatch C++

http://stackoverflow.com/questions/12582040/understanding-double-dispatch-c

void fight Creature 0 class Monster public Creature void fightwho Warrior w cout Monster versus Warrior endl void fightwho Monster.. fightwho Warrior w cout Monster versus Warrior endl void fightwho Monster m cout Monster versus Monster endl public void fight.. Monster versus Monster endl public void fight Creature c c.fightwho this class Warrior public Creature void fightwho Warrior w cout..