aspose file tools*
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

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "abstract rules" Watch "abstract rules" New topic

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"
I agree. Here's the link:
subject: abstract rules
Similar Threads
Interfaces in java
do they exist abstract interfaces?
Questions on for Kathy Sierr or Bert Bates
Abstract cannot be protected
Regarding abstract class