1.

Which of these is used as a default specifier for a member of the class if no access specifier is used for it?(a) private(b) public(c) public, within its own class(d) protectedThe question was asked in an online quiz.This key question is from Public & Private Access Modifier topic in portion Arrays and Strings of C#

Answer»

Correct option is (a) PRIVATE

The explanation is: By definition if a CLASS has no access SPECIFIERS, it defaults to private ACCESSIBILITY.



Discussion

No Comment Found

Related InterviewSolutions