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 among the programming languages belongs to the open source category ?
Which is not a Unicode encoding form?

What is the value of sum after the execution of the following code?

int sum = 0;

for (int i = -5; i<=;i++)

{

         if (!i) break;

         sum += i;

}

 

 

In programming, what is the purpose of a loop?
ഒരു ഹൈപ്പർ ലിങ്ക് സൃഷ്ടിക്കാൻ ഉപയോഗിക്കുന്ന HTML Tag ഏതാണ്?