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


17.Which syntax among the following shows that a member is private in a class?
A.private: functionName(parameters)
B.private(functionName(parameters))
C.private functionName(parameters)
D.private::functionName(parameters)
Answer:  Option  C
Explanation:

The function declaration must contain a private keyword follower by the return type and function name. The private keyword is followed by a normal function declaration.

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