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:

EBCIDIC is a _____ bit code.
Protocol used by WWW:
Identify the HTML section that contains the content displayed in the browser window.
Which of the following is a computer code ?
Which of the following system software translate and execute high level language source code, statement by statement ?