Object Oriented Programming Using C++ - Section 1 :: Discussion


20.Which error will be produced if private members are accessed?
A.Can’t access private message
B.Code unreachable
C.Core dumped
D.Bad code
Answer:  Option  A
Explanation:

The private member's access from outside the class produces an error. The error states that the code at some line can’t access the private members. And denies the access terminating the program.

Tutorial Link:
Published by:Kiran Manzoor

Comments are not available

Post your comments here:

Optional

Date to Date Current Affairs 2022

PakMCQs.net

Quick Links

GAT Subject



   Computer Science    English Mcqs    Agriculture    

Engineering



   Computer Science    Civil Engineering    

Technical



   Networking    Electronics    Database    

Past Papers



   Model Papers    FPSC Papers