Can we create 'const' member functions in class?

180. Can we create "const" member functions in class?

  1. Yes
  2. No

Answer: A) Yes

Explanation:

Yes, we can create "const" member functions in the class. In the "const" member function, we cannot change the value of data members.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.