1.

Which among the following have least security according to the access permissions allowed?(a) Private(b) Default(c) Protected(d) PublicThis question was addressed to me in exam.Origin of the question is Public Access Specifier topic in division Access Specifiers of Object Oriented Programming

Answer»

Correct ANSWER is (d) PUBLIC

The best EXPLANATION: The public members are available to the whole program. This makes the members most vulnerable to accidental changes, which may result in UNWANTED modification and hence unstable PROGRAMMING.



Discussion

No Comment Found

Related InterviewSolutions