About Question enthuware.ocpjp.v8.2.1469 :
Posted: Sat Jan 23, 2016 11:01 am
I don't understand the explanation of the answer of this question:
Question:
Question:
Answer:Consider this class:State whether the following statement is true or false: At //1 a1.i is valid.Code: Select all
class A { private int i; public void modifyOther(A a1) { a1.i = 20; //1 } }
Explanation:True
Private means private to the class and not to the object. In other words, members marked private can't be accessed by code in any class other than the class in which the private member was declared.