adplus-dvertising
frame-decoration

Question

Why do classes use mutator methods?

a.

Allows client to modify the program

b.

Allows client to modify/write the private members

c.

Allows servers to access all the private data

d.

Allows servers to access only protected members

Answer: (b).Allows client to modify/write the private members

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Why do classes use mutator methods?

Similar Questions

Discover Related MCQs

Q. Why do classes use accessor methods?

Q. Why do we use user defined classes?

Q. Which feature is exhibited by the inbuilt classes?

Q. What is the use of inbuilt classes?

Q. In which case the classes can be used to make more efficient program?

Q. Class is _____________ of an object.

Q. Which among the follow is a feature of class?

Q. Which among the following is an advantage of using classes over structures of C?

Q. Which class represents the most abstracted information?

Q. If a database have to be maintained using OOP, to store the details of each employee in a company, which would be the best choice among the following?

Q. If a class have two data members and two functions to add those two numbers and to subtract them, which among the following is most efficient if the programmer wants to implement multiplication too?

Q. To group all the brands of cars, what should be used?

Q. Which among the following is the main characteristic of class?

Q. Deriving a class in such a way that that the base class members are not available for further inheritance is known as ___________________

Q. Which feature is not related to the derived classes among the following?

Q. The members of a derived class can never be derived.

Q. How many classes can be derived from a derived class?

Q. If base class is an abstract class then derived class ______________ the undefined functions.

Q. If class A is derived from another derived class B which is derived from class C, which class will have maximum level of abstraction?

Q. Derived class is also known as ______________ class.