Question

A(n) ______________ method stores a value in a data attribute or changes its value in some other way. a. modifier b. constructor c. mutator d. accessor

Solution

Verified
Step 1
1 of 2

Accessors (AKA getters because they're often named something like get_data()\texttt{get\_data()}) are object methods which retrieve the value of a data attribute without changing it.

Mutators (AKA setters because they're often named something like set_data()\texttt{set\_data()}) are object methods which store or change the value of a data attribute.

Create an account to view solutions

By signing up, you accept Quizlet's Terms of Service and Privacy Policy
Continue with GoogleContinue with Facebook

Create an account to view solutions

By signing up, you accept Quizlet's Terms of Service and Privacy Policy
Continue with GoogleContinue with Facebook

Recommended textbook solutions

Computer Organization and Design MIPS Edition: The Hardware/Software Interface 5th Edition by David A. Patterson, John L. Hennessy

Computer Organization and Design MIPS Edition: The Hardware/Software Interface

5th EditionISBN: 9780124077263 (5 more)David A. Patterson, John L. Hennessy
220 solutions
Starting Out with Python 3rd Edition by Tony Gaddis

Starting Out with Python

3rd EditionISBN: 9780133582734 (5 more)Tony Gaddis
610 solutions
Fundamentals of Database Systems 7th Edition by Ramez Elmasri, Shamkant B. Navathe

Fundamentals of Database Systems

7th EditionISBN: 9780133970777 (1 more)Ramez Elmasri, Shamkant B. Navathe
687 solutions
Introduction to Algorithms 3rd Edition by Charles E. Leiserson, Clifford Stein, Ronald L. Rivest, Thomas H. Cormen

Introduction to Algorithms

3rd EditionISBN: 9780262033848 (2 more)Charles E. Leiserson, Clifford Stein, Ronald L. Rivest, Thomas H. Cormen
726 solutions

More related questions