App Logo

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:

In C++, the number 135, 45 is a :
In Digital Logic Designs, GAL is abbreviated as:
Programming errors generally fall into which of the following categories?
Which of the following is not a programming language with Object Oriented Features?
In which year did IBM developed FORTRAN High Level programming languages used to write scientific applications?