Which Among Function Will Be Overridden From The Function #994
Which among function will be overridden from the function defined in derived class below:</p> <pre><code class="language-cpp"> class A { int i; void show() { cout<<i; } void print() { cout <<i; } }; class B { int j; void show() { cout<<j; } }; </code></pre>
This multiple choice question (MCQ) is related to the book/course
gs gs111 OOP Object Oriented Programming Java.
It can also be found in
gs gs111 Member Functions & its Types - Object Oriented Programming MCQ: Overriding Member Functions - Quiz No.1.
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