Calling Base Class Methods

Q

How can method defined in multiple base classes with same name be invoked from derived class simultaneously?

✍: FYIcenter

A
class x {
   public: m1();
};

class y {
   public: m1();
};

class z: public x, public y {
   public: m1() {
      x::m1();
      y::m1();
   }
};

2007-02-26, 5544👍, 0💬