1.

We can reduce the visibility of inherited methods.(a) True(b) FalseI had been asked this question in semester exam.The origin of the question is Public Access Specifier in division Access Specifiers of Object Oriented Programming

Answer»

Correct option is (B) False

Easy explanation - The statement given is false. This is because when we inherit the MEMBERS they can either be made more SECURE or be at same access. But the visibility reduction is not possible, for example, if a member is PROTECTED in parent class, then it can only be made protected or PRIVATE in subclass and not public in any case.



Discussion

No Comment Found

Related InterviewSolutions