Which of the following best describes member function overriding?

32 views
  • Member functions having the same name in derived class only
  • Member functions having the same name in derived class only
  • Member functions having the same name in base and derived classes (Correct Answer)
  • Member functions having the same name in base class only

Explanation


The member function which is defined in base class and again in the derived class, is overridden by the definition given in the derived class.

Comments (0)

No comments yet. Be the first to comment!

Want to practice more?

Explore thousands of MCQs across every exam category on Exams Nepal.

Find More MCQs