Original Post
Say I inherit a class but instead of overriding a function, I want to append on to it. Is there a way to call the parent function first from the child class? example:
class Parent
{
public:
Parent();
~Parent();
Update();
};
Parent::Parent(){
}
Parent::~Parent(){
}
Parent::Update(){
// Update X
}
class Child : public Parent
{
public:
Child();
~Child();
Update();
};
Child::Child(){
}
Child::~Child(){
}
Child::Update(){
// Call parent Update() to update X
// Now update y
}