In a derived class I have a function called evaluate() (it's a virtual in the base class). In this derived class i also have a function set_value() and hence i want get_value() as well. get_value() should return the exact same thing as evaluate()
Is there anyway to say that a call to get_value is a call to evaluate()? With some sort of alias keyword?
I don't know if this exists or what it would be called, I have searched and nothing found.
Maybe I shoud do:
inline double Variable::get_value() const
{
return evaluate();
}