Hi friends,
I want to know that Why can't you specify the accessibility modifier for methods inside the interface?
Accessibility modifier for methods inside the interface
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Satyapriya NayakRank #47 · 31.5K reputationPosted Feb 11, 2012, 11:13 PM EST
Methods inside Interfaces are public by default.you can't declare any accessibility modifier for methods inside interface.
Thanks
VulpesRank #55 · 29.2K reputationPosted Feb 12, 2012, 12:52 AM EST
Daril148 reputationPosted Nov 17, 2021, 3:44 AM EST