Which Among The Following Is Correct For The Code Givenp Pre #234

Which among the following is correct for the code given?</p> <pre><code class="language-cpp"> class A { private: int marks; A() { } Public : disp() { cout<< marks; } }; class B: public A { } B b; </code></pre>

Online Quiz 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: Protected Access Specifier - Quiz No.1.

Which among the following is correct for the code given?

 class A { private: int marks; A() { } Public : disp() { cout<< marks; } }; class B: public A { } B b; 

Similar question(s) are as followings:



Online Quizzes of gs111 OOP Object Oriented Programming Java

Choose an organization

Theme Customizer

Gaussian Texture



Gradient Background