Back to slide -- Keyboard shortcut: 'u'  previous -- Keyboard shortcut: 'p'  next -- Keyboard shortcut: 'n'          virtual-member-functions/interface-like-class.cc - The C++ counterpart to the C# Interface.Lecture 5 - slide 11 : 40
Program 2

// A C++ Interface-like abstract class

enum GameObjectMedium {Paper, Plastic, Electronic};

class IGameObject{
public:
  virtual int getGameValue() = 0;
  virtual GameObjectMedium getMedium() = 0;
};