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 got a compilation error.
when derived.Func('a'); works!
WHY?
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 got a compilation error.
when derived.Func('a'); works!
WHY?