1.

Which among the following can be used together in a single class?(a) Only private(b) Private and Protected together(c) Private and Public together(d) All three togetherThis question was addressed to me during an online exam.I'm obligated to ask this question of Access Specifiers topic in chapter Access Specifiers of Object Oriented Programming

Answer»

The correct OPTION is (d) All THREE together

Explanation: All the classes can USE any of the SPECIFIERS as needed. There is no restriction on how many of them can be used together.



Discussion

No Comment Found

Related InterviewSolutions