Derived::Derived() : Base()
{
...
}
What about for functions?
How to call method from Base class?
Say a base class has a virtual function foo() and another class derived from it wants to override this foo() but wants to do what the base class does first. How do you do this in C++ (like super() in Java)?
I know for constructors, it's like this:
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement