GeeCON Prague 2014*
The moose likes Java in General and the fly likes abstract rules Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "abstract rules" Watch "abstract rules" New topic
Author

abstract rules

saravanan ragunathan
Ranch Hand

Joined: Aug 02, 2010
Posts: 84
we cannot declare abstract methods in interface as protected and default(even if we don't mention
any access specifier (default) compiler takes it as public)

but we can declare abstract method in abstract class as protected and default...

why there are different rules for abstract class and interface?



"I Love Java Ranch"
 
GeeCON Prague 2014
 
subject: abstract rules