Q:

What is the syntax of a const member function?

0

What is the syntax of a const member function?


  1. void fun() const {}
  2. void fun() constant {}
  3. void const fun() {}
  4. const void fun(){}

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

(a).void fun() const {}

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

OBJECT ORIENTED PROGRAMMING MEMBER FUNCTIONS MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Which keyword is used to make a nonmember function... >>
<< What are friend member functions (C++)?...