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:

ഹൈ ലെവൽ ലാംഗ്വേജിൽ നിന്ന് മെഷീൻ ലെവൽ ലാംഗ്വേജിലേക്ക് വിവർത്തനം ചെയ്യുന്നു.
The method of making a programme error free :
A terminal node in a binary tree is called :
Which of the following is a phase of a compilation process?
എത്ര ബിറ്റുകൾ ഉപയോഗിച്ചാണ് ASCII കോഡിൽ അക്ഷരങ്ങളെ പ്രതിനിധീകരിക്കുന്നത് ?