1.

Access specifiers which can be used for an interface are?(a) Public(b) Protected(c) Private(d) All of the mentionedThis question was addressed to me in homework.The above asked question is from Interfaces Introduction in portion Object Oriented Concepts of C#

Answer»

Correct choice is (a) PUBLIC

The best I can explain: Access SPECIFIER of an INTERFACE is EITHER public or none. When no access specifier is specified then only default access specifier is used due to which interface is available only to other members of the package in which it is declared, when declared public it can be used by any code declared ANYWHERE in the class area.



Discussion

No Comment Found

Related InterviewSolutions