• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps What will be happen public method in protected class ?

Bee Torika

Newbie
Nov 12, 2015
35
2
Hi

If a class is declared by protected, but a method inside the class is declared in public,
a method is mode as 'protected' or 'public' ?

I know protected method in public class will be in a mode of 'protected' (right ??),
but how about in opposite case ?

Thanks
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones