asafaa
March 17th, 2008, 01:55 PM
why are all the metods in an interface public?
why not protected ?
why not protected ?
|
Click to See Complete Forum and Search --> : why all the metods in an interface public? asafaa March 17th, 2008, 01:55 PM why are all the metods in an interface public? why not protected ? MadHatter March 17th, 2008, 02:17 PM 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. asafaa March 17th, 2008, 02:29 PM thanks! codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |