7 years ago in C++ Classes And Objects

Which member function of class cannot modify its objects attributes ?

[A] friend functions
[B] Private member functions
[C] Constant member functions
[D] Static member functions
Loading...
Next Question

Overall Stats

Attempted 123
Correct 21
Incorrect 28
Viewed 74

Answers

Guest
Guest
Adhir Das
Adhir Das - 3 weeks ago

Adhir Das is saying Constant member functions is correct answer

Shree Books
Shree Books - 4 weeks ago

Shree Books is saying Private member functions is correct answer

ram
ram - 2 months ago

ram is saying Static member functions is correct answer

shivank mittal
shivank mittal - 3 months ago

shivank mittal is saying Private member functions is correct answer

Shashank Chaubey
Shashank Chaubey - 3 months ago

Shashank Chaubey is saying Constant member functions is correct answer

Related Questions

The public files in a class library usually contain ?

  • [A] Constant definitions
  • [B] member function definitions
  • [C] class declarations
  • [D] variable definition

Objects of the same class share the values of ...... while they maintain separate values for ........ .

  • [A] Static variables, non static variables
  • [B] Non static variables, static variables
  • [C] Global variables, static variables
  • [D] Static variables, register variables

A class cannot be ?

  • [A] Virtual
  • [B] Generic
  • [C] Inline
  • [D] Friend

classes are useful because they

  • [A] are removed from memory when not in use
  • [B] permit data to be hidden from other classes
  • [C] bring together all aspects of an entity in one place
  • [D] can closely model objects in the real world