Object Oriented Programming using C++ Questions and Answers – Public Access Specifier
This set of Object Oriented Programming (OOPs) using C++ Multiple Choice Questions & Answers (MCQs) focuses on “Public Access Specifier”. 1. Which among the following is true for the code given below? class A { int marks; public : disp() { cout<<marks; } } class B: protected A { char name[20]; } A a; a.disp(); … Read more