|
-
March 17th, 2008, 01:55 PM
#1
why all the metods in an interface public?
why are all the metods in an interface public?
why not protected ?
-
March 17th, 2008, 02:17 PM
#2
Re: why all the metods in an interface public?
because its an interface. as its name denotes, it is the interface through which you access an object implementing it. the concept of private / protected is an implementation detail, which is left to an abstract class.
-
March 17th, 2008, 02:29 PM
#3
Re: why all the metods in an interface public?
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
|
Click Here to Expand Forum to Full Width
|