Q:

Which among function will be overridden from the function defined in derived class below:

0

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; 
 }
};

  1. show()
  2. print()
  3. show() and print()
  4. Compile time error

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

 (a).show()

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

OBJECT ORIENTED PROGRAMMING MEMBER FUNCTIONS MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
How to access the overridden method of base class ... >>
<< Exactly same declaration in base and derived class...