Why can't you specify the accessibility modifier for methods inside the interface?
Why can't you specify the accessibility modifier for methods inside the interface?
Answer
In an interface, we have virtual methods that do not have method definition. All the methods are there to be overridden in the derived class. That’s why they all are public.
Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website.
If you are using this website then its your own responsibility to understand the content of the website