Skip to content

Instantly share code, notes, and snippets.

@ChrisLundquist
Created December 22, 2010 23:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChrisLundquist/752273 to your computer and use it in GitHub Desktop.
Save ChrisLundquist/752273 to your computer and use it in GitHub Desktop.
inheritance test
#include <iostream>
class Physics
{
public:
void Update() { std::cout << "Physics!"; }
};
class Graphics
{
public:
void Update() { std::cout << "Graphics!"; }
};
class Shape : Physics, Graphics
{
};
int main()
{
Shape shape;
shape.Update();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment