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:

Which of the following is the correct declaration for an array ?
A formula always begins -----------sign in MS Excel
A self-relocating program is one which :
The method of making a programme error free :
In which year did IBM developed FORTRAN High Level programming languages used to write scientific applications?