Which Among The Following Is Correct To Call A Private Member #214
Which among the following is correct to call a private member from outside the class?
This multiple choice question (MCQ) is related to the book/course gs gs111 OOP Object Oriented Programming Java. It can also be found in gs gs111 OOps Access Specifiers - OOPs MCQ: Private Access Specifier - Quiz No.1.
Which among the following is correct to call a private member from outside the class?
object.memberfunction( parameters );
object->memberfunction( parameters );
object->memberfunction( parameteres); or object.memberfunction( parameters );
Not possible