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
Ron McLeod
Paul Clapham
Devaka Cooray
Tim Cooke
Sheriffs:
Rob Spoor
Liutauras Vilda
paul wheaton
Saloon Keepers:
Tim Holloway
Tim Moores
Mikalai Zaikin
Carey Brown
Piet Souris
Bartenders:
Stephan van Hulst
Forum:
Beginning Java
Abstract classes and interfaces
feroz muhamed
Ranch Hand
Posts: 87
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
hi,
what are the differences between an abstract class and interface
Rahul JG
Ranch Hand
Posts: 44
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
The following articles might help:
http://www.javaworld.com/javaqa/2001-04/03-qa-0420-abstract_p.html
http://www.javaworld.com/javaworld/javaqa/2001-08/03-qa-0831-interface.html
Rahul
James Clinton
Ranch Hand
Posts: 190
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
BIG DIFFERENCE:
If you use a abstract class to force your child classes to implement a function, then depending on your system, the function will not be visible to the clients (you may or may not want this). RMI is a good example of this where interfaces must be used to expose services to clients.
Note. this is not an either or issue, they should be used inconjunction with each other. See strat
pattern
below.
http://www.javaworld.com/javaworld/jw-04-2002/jw-0426-designpatterns-p1.html
http://www.javaworld.com/columns/jw-java-design-patterns-index.shtml
Hope that helps.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
regarding util package
difference between abstract class and an interface
Core Java Releated Quesstion
what s the difference between abstract class and interface?
abstract class(all abstract methods) vs interface
More...