Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Beginning Java
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Beginning Java
implement and extend order
raj kothari
Greenhorn
Posts: 24
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
"By convention, the implements clause follows the extends clause, if there is one. "
This is from official
java
tutorial.
http://java.sun.com/docs/books/tutorial/java/IandI/usinginterface.html
Does it mean that it is only convention to specify the extend first and then implement next, and it is not rule/ compulsion?
But compiler gives error when implement is used first and then extend.
Majid Al-Fifi
Ranch Hand
Posts: 45
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
It seems it is a compulsary convention
You are right, at the link it says by convention but the compiler is enforcing it. how come???
SCJP1.4, SCWCD1.4
Lorenz Baylon
Ranch Hand
Posts: 99
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
We may extend only one class but may implement one to many interfaces. In that case, it would be more reader-friendly to have the extend-ing first before the implement-ing stuff.
Regards
I just cant look, its killing me.
Majid Al-Fifi
Ranch Hand
Posts: 45
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
you are right good reasoning
SCJP1.4, SCWCD1.4
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
static variables and methods..
interfaces and packages ?
interface reference
when to use abstract and interfaces in our project
Interface and Abstract Class
More...