In C++, what is the default access specifier for members of a class?
Show answerHide answer
Correct answer: (A) private
Explanation
class members are private by default; struct members are public.
Correct answer: (A) private
Explanation
class members are private by default; struct members are public.
This is question 135 of DSSSB TGT Computer Science Full Mock Test 1. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.