-
Junior Member
Interface as protected / private
Can we define Interface as protected/private instead of public? What happened in that situations? Please provide complete details..
-
Junior Member
Re: Interface as protected / private
<<public/default>> interface interfacename{static variables; abstract methods}
-
Junior Member
Re: Interface as protected / private
difference between finance & accounts
-
Junior Member
Re: Interface as protected / private
Interface defaulty it is public.
The sun specification for interfaces is it must be accessible from any class and from any package.
If we are declaring that as protected or private we are not giving ability to access from all other packages.
-
Junior Member
Re: Interface as protected / private
If interface is define as protected or private, that means we can't access that interface from all other packages, but interface specification is said by sun "interface must be accessible from any class and any package".
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules