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 ?
A markup language used for creating web pages and web applications
The 'C' Programming language was designed by ____ as a system programming language for UNIX.
C++ ലാംഗ്വേജിൽ കീവേഡ് അല്ലാത്തത് ?
The visual effects that occur when you move from one slide to the next during a presentation is :