True Mutator Accessor Methods Select Apply 1 Accessor Mutator Methods Parent Class Must In Q25948282

Which are true about mutator and accessor methods? (Select allthat apply.)

1.The accessor and mutator methods of a parent class must beincluded in the definition of a child class.

2.A method named getName would likely be an accessor method.

3.They are usually set to be private so they can be used by theclass to update or retrieve the data stored in the class.

4.A mutator method is used by another class to retrieve datafrom an object.

5.They can be inherited by child classes.

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *