Computer Sciences > GATE 2014 SET-3 > Object-Oriented Programming
Consider the following two statements:
I. If all classes of a C++ program are declared to be friends of one another, then the program is as insecure as a C program.
II. In Java, an instance of a class can access a private variable of another instance of the same class.
Which of the following statements is CORRECT?
I. If all classes of a C++ program are declared to be friends of one another, then the program is as insecure as a C program.
II. In Java, an instance of a class can access a private variable of another instance of the same class.
Which of the following statements is CORRECT?
Correct : b
Total Unique Visitors
Loading......