5 years ago in C++ Functions

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 193
Correct 67
Incorrect 37
Viewed 89

Answers

Guest
Guest
Katreen Ebraheem
Katreen Ebraheem - 20 hours ago

Katreen Ebraheem from Egypt is saying Constant member functions is correct answer

Anisha Lamsal
Anisha Lamsal - 1 month ago

Anisha Lamsal from Kathmandu, Nepal is saying Constant member functions is correct answer

Saisha Shetty
Saisha Shetty - 2 months ago

Saisha Shetty is saying Constant member functions is correct answer

Diksha Nasa
Diksha Nasa - 2 months ago

Diksha Nasa is saying Private member functions is correct answer

indhuja indhuja
indhuja indhuja - 4 months ago

indhuja indhuja from Erode, India is saying Constant member functions is correct answer

Related Questions

Which of the following statement will be correct if the function has three arguments passed to it?

  • [A] The trailing argument will be the default argument.
  • [B] The first argument will be the default argument.
  • [C] The middle argument will be the default argument.
  • [D] All the argument will be the default argument.

Which of the following statement is correct?

  • [A] Constructors can have default parameters.
  • [B] Constructors cannot have default parameters.
  • [C] Constructors cannot have more than one default parameter.
  • [D] Constructors can have at most five default parameters.

Which of the following type of function is an ideal candidate for being declared inline ?

  • [A] A function that is small and is not called frequently
  • [B] A function that is small and is called frequently
  • [C] A function that is not small and is not called frequently
  • [D] A function that is not small and is called frequently

A friend function can be used to ?

  • [A] avoid arguments between classes
  • [B] allow access to classes whose source code is unavailable
  • [C] allow one class to access an unrelated class
  • [D] increase the versatility of an overloaded operator

Which of the following statement is incorrect?

  • [A] Default arguments can be provided for pointers to functions.
  • [B] A function can have all its arguments as default.
  • [C] Default argument cannot be provided for pointers to functions.
  • [D] A default argument cannot be redefined in later declaration.