adplus-dvertising
frame-decoration

Question

What is default access specifier for data members or member functions declared within a class without any specifier, in C++ ?

a.

Private

b.

Protected

c.

Public

d.

Depends on compiler

Answer: (a).Private

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is default access specifier for data members or member functions declared within a class without any specifier, in C++ ?