Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Object {
- private:
- int id; string name;
- public:
- Object(){};
- Object(int i, string n){name = n; id = i;};
- };
- class Button: virtual public Object {
- private:
- string type1;
- int x_coord, y_coord;
- public:
- Button():Object(){};
- Button(int i, string n, string ty, int x, int y):Object(i, n){
- type = ty;
- x_coord = x;
- y_coord = y;};
- };
- class Action: virtual public Object {
- private:
- string type2;
- public:
- Action():Object(){};
- Action(int i, string n, string t):Object(i, n){ type2 = t;};
- };
- class ActionButton: public Button, public Action{
- private:
- bool active;
- public:
- ActionButton():Buton(), Action(){};
- ActionButton(int i, string n, string t1, int x, int y, string t2, bool a):
- Button(i, n, t1, x, y), Action(i, n, t2) {active = a;};
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement