Which Member Will Never Be Used From The Following Classp Pre #219
Which member will never be used from the following class?</p> <pre><code class="language-cpp"> class A() { int marks; char name[20]; public : A() { marks=100; } void disp() { cout<<”Marks= ”<'<marks; cout<<”Student”; } }; </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 OOps Access Specifiers - OOPs MCQ: Private Access Specifier - Quiz No.1.
Which member will never be used from the following class?
class A() { int marks; char name[20]; public : A() { marks=100; } void disp() { cout<<”Marks= ”<'<marks; cout<<”Student”; } };
name variable will never be used
marks variable will never be used
constructor will never be used
disp() function will never be used