A
ambarish.mitra
Class A has a public method f, and another class B is publicly derived
from A. The derived class B has also the same function but with
different arguments.
Question: In the scope of class B, is the function f overloaded? (yes/
no)
class A
{
public: int f(int x);
}
class B: public A
{
public: int f(int x, float y);
}
from A. The derived class B has also the same function but with
different arguments.
Question: In the scope of class B, is the function f overloaded? (yes/
no)
class A
{
public: int f(int x);
}
class B: public A
{
public: int f(int x, float y);
}