Which among function will be overridden from the function defined in derived class below:
class A
{
int i;
void show()
{
cout<<i;
}
void print()
{
cout <<i;
}
};
class B
{
int j;
void show()
{
cout<<j;
}
};
- show()
- print()
- show() and print()
- Compile time error
(a).show()
need an explanation for this answer? contact us directly to get an explanation for this answer