C
ciccio
Hi,
Ones more I have a stupid virtual function question. Assume the
following simple lines of code
class Parent {
public:
virtual Parent foo(Parent &);
virtual void bar(Parent &);
}
class Child : public Parent {
Child foo(Child &);
void bar(Child &);
}
Will foo and bar be virtually overloaded?
Or is this here a complete misconception of virtual functions?
Thanks
Ones more I have a stupid virtual function question. Assume the
following simple lines of code
class Parent {
public:
virtual Parent foo(Parent &);
virtual void bar(Parent &);
}
class Child : public Parent {
Child foo(Child &);
void bar(Child &);
}
Will foo and bar be virtually overloaded?
Or is this here a complete misconception of virtual functions?
Thanks