Q:

Why do classes use accessor methods?

0

Why do classes use accessor methods?


  1. To make public data accessible to client
  2. To make public data private to client
  3. To make private data public for whole program
  4. To make private data accessible to the client

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

 (d).To make private data accessible to the client

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

OBJECT ORIENTED PROGRAMMING OBJECTS AND CLASSES IN OOPS MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Why do classes use mutator methods?... >>
<< Why do we use user defined classes?...