Home / MCQ Bank / Computer
Computer Inheritance In C Plus Plus

In C++, what happens if a derived class redefines a method that is already defined in its base class?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option C • Method in the derived class overrides the base class method

Related Computer Questions

Which of the following is used with the switch statement? The given array is arr = {3, 4, 5, 2, 1}. The number of iterations in bubble sort and selection sort respectively are ______ Which interface in the Java Collections Framework extends the `Set` interface and represents a collection of elements stored in a sorted order? Which function is called repeatedly by bsearch() to compare search elements against the elements in the array? What is the primary function of "Power BI" in data science?