If the functions are not the same I should have BOTH functions in the derived class: one that takes int and second which takes char*.
I want to imply the function that takes the char* in the BASE class and in the derived class i want to ADD another function - which is DIFFERENT cause it takes an...
I have a base class with 2 public functions :
CBase & Func (const char *);
CBase & Func (char);
I have derived class with a public inharitance from the base.
In the derived class I have a public function
CBase & Func (int);
when I call in main function
derived.Func("aaa"); I...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.