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 is used as a language for designing web pages ?
Queue in Data Structure is :
A pointer in C is a variable to which :
ഫ്ലോ ചാർട്ട് ഒരു തരം _____ ആണ്.
Which is not a Unicode encoding form?