Objects and Classes - General Questions :: Discussion


2.Which of the following statements is incorrect?
A.Friend keyword can be used in the class to allow access to another class.
B.Friend keyword can be used for a function in the public section of a class.
C.Friend keyword can be used for a function in the private section of a class.
D.Friend keyword can be used on main().
Answer:  Option  D
Explanation:

Tutorial Link:
Published by:Michael Daani

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