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 programming language is classified as low level language ?
പ്രോഗ്രാമിംഗ് ഭാഷയുടെ നിയമങ്ങൾ അല്ലെങ്കിൽ വാക്യഘടന പാലിക്കാത്തത് കൊണ്ട് സംഭവിക്കുന്ന തെറ്റുകൾ അറിയപ്പെടുന്നത് ?
A program that translates one instruction at a time into machine language and executes it is called:
Which of the following is used as a language for designing web pages ?
C is a _____ programming language.