Why can’t you specify the accessibility modifier for methods inside the interface?
In an interface, we have virtual methods that do not have method definitions. All the methods are there to be overridden in the derived class. That’s why they all are public.
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
In an interface, we have virtual methods that do not have method definitions. All the methods are there to be overridden in the derived class. That’s why they all are public.
need an explanation for this answer? contact us directly to get an explanation for this answer