File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes extend with implements Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "extend with implements" Watch "extend with implements" New topic
Author

extend with implements

Ritesh raushan
Ranch Hand

Joined: Aug 29, 2012
Posts: 97
class Horse extends Animal implements Elephant....

why we write first extends after implements...
Jeff Verdegan
Bartender

Joined: Jan 03, 2004
Posts: 5863
    
    6

It's not clear what you're asking.

Are you asking why we use both extends and implements? If that's your question, the answer is because this class extends another class and implements an interface.

Or are you asking about why it's in that order? If that's your question, then the answer is because that's the order the author happened to write it in, or perhaps because he had no choice because maybe the spec says it has to be in that order.
Kemal Sokolovic
Bartender

Joined: Jun 19, 2010
Posts: 792
    
    2

Declaring Classes


The quieter you are, the more you are able to hear.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: extend with implements
 
Similar Threads
i have to print( view jsp ) variable which is created in action class in (struts 2 )
is-a relationship
about Constructor overloading
Problem with talking in java
can anonymous inner class implement an interface ?