Question

Which of the following is a difference between accessor and mutator methods? Group of answer choices...

Which of the following is a difference between accessor and mutator methods?

Group of answer choices

mutator and accessor methods are really the same thing

mutator methods usually do not have a return type of void, accessor often do have a return type of void

accessor methods usually do not have a return type of void, mutator often do have a return type of void

accessor methods must be invoked using the name of a class, mutator methods are invoked using the name of an instance

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer -

The answer is - option number 3.

accessor methods usually do not have a return type of void, mutator often do have a return type of void

Reason -

1) 1st option is not correct -

Accessor and mutator methods are not same thing both have differences this are the getter and setter of the functions.

2) 2nd option is not correnct -

mutator methods do have return type void

4) 4th option is not correct

Both invoked using instance of class

Add a comment
Know the answer?
Add Answer to:
Which of the following is a difference between accessor and mutator methods? Group of answer choices...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT