Challenger App

No.1 PSC Learning App

1M+ Downloads

Which of the following statement is /are correct about member functions in a C++ Class?

(i)A member function is defined only outside the class

(ii)A member function with the same name as its class is called a constructor

(iii)A member function operate on class data

Ai Only

Bi and ii only

Cii and iii only

Diii only

Answer:

C. ii and iii only

Read Explanation:

member functions in a C++ Class 1.A member function with the same name as its class is called a constructor 2.A member function operate on class data


Related Questions:

ഒരു ഹൈപ്പർ ലിങ്ക് സൃഷ്ടിക്കാൻ ഉപയോഗിക്കുന്ന HTML Tag ഏതാണ്?
Which access specifier is used for constructors in C++?
Choose the correct HTML element for the largest heading.
Who invented the high level programming language C?
The 'C' Programming language was designed by ____ as a system programming language for UNIX.