#ifndef PHYSICSOBJECT_H #define PHYSICSOBJECT_H #include "IPhysics.h" class PhysicsObject : public IPhysics { public: PhysicsObject() : IPhysics(&x) {} int GetX() { Update(); return x; } private: int x; }; #endif