Challenger App

No.1 PSC Learning App

1M+ Downloads
Which access specifier is used for constructors in C++?

Aprivate

Bpublic

Cprotected

Dall the above

Answer:

B. public

Read Explanation:

  • The public keyword is used to create public members (data and functions).
  • The public members are accessible from any part of the program.

Related Questions:

Which of the following system software translate and execute high level language source code, statement by statement ?
ഒരു ഹൈപ്പർ ലിങ്ക് സൃഷ്ടിക്കാൻ ഉപയോഗിക്കുന്ന HTML Tag ഏതാണ്?
EBCIDIC is a _____ bit code.

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;

}

 

 

Which is not a Unicode encoding form?