Accessor methods are used to

Options
- Set object’s attributes
- Return and set object’s attributes
- Return an object’s attributes
- All of the above


CORRECT ANSWER : Return an object’s attributes

Discussion Board
Accessor method

Many accessor methods need to return values which are references to objects which represent a part of the state of the called object. This methods are used to read data values of an object.

Prajakta Pandit 02-22-2017 07:10 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement