If the method to be overridden has access type protected, can subclass have the access type as priva

59 views · Published 26 December 2013 · 3:03 · Indexed 21 September 2026

Channel: Interview DOT · 2013 · Science & Technology

Watch on YouTube

Click here - https://www.youtube.com/channel/UCd0U_xlQxdZynq09knDszXA?sub_confirmation=1 to get notifications. If the method to be overridden has access type protected, can subclass have the access type as priva

If the method to be overridden has access type protected, can subclass have the access type as private ?
No, it must have access type as protected or public, since an overriding method must not be less accessible than the method it overrides

A Job Portal
http://www.InterviewDot.com http://www.InterviewDot.com http://www.InterviewDot.com
One Click Dream Job - http://www.interviewdot.com/upload-resume/uploadresume.htm

Other Top Job Portals
www.Naukri.com
www.MonsterIndia.com
www.TimesJobs.com

Are you looking for a new Job ?
InterviewDot.com - A Job Portal
http://www.InterviewDot.com http://www.InterviewDot.com http://www.InterviewDot.com
One Click Dream Job - http://www.interviewdot.com/upload-resume/uploadresume.htm

More from this channel