I have 2 classes:
class base { virtual void foo() {}; }; class derived : public base { void foo() { base::foo(); } };
I made a mistake and wrote base:foo(); instead of base::foo(); . The code has been compiled and run, but compromised.
I donβt know how I can do this Google and I donβt know what it is, but Iβm very interested: what does it mean?
base:foo();
If this is important:
class base : public QAbstractGraphicsShapeItem
c ++ syntax
railmisaka May 22 '15 at 2:31 a.m. 2015-05-22 02:31
source share