Why Do Classes Use Accessor Methods #463
Why do classes use accessor methods?
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 Classes - Object Oriented Programming MCQ: Class Use - Quiz No.2.
Why do classes use accessor methods?
To make public data accessible to client
To make public data private to client
To make private data public for whole program
To make private data accessible to the client