#1 (permalink)  
Old 01-22-2010, 10:26 AM
Junior Member
 
Join Date: Jan 2010
Posts: 3
Default Please help!

Hi I have a java question,
What is the difference between an Interface and an Abstract class?
__________________
Wheel Hub bearing
Reply With Quote
  #2 (permalink)  
Old 01-22-2010, 12:42 PM
Junior Member
 
Join Date: Dec 2009
Posts: 27
Default

There is no difference in the functionality of these two.The only difference is that a class cannot extend an abstract class if it is already extending some other class. An interface on the other hand can be implemented in any situation which makes them very powerful. Also user defined exceptions can be defined within an interface itself which is not the case with anabstract class.
__________________
Freelancer getting Home Based Business Opportunity
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 09:24 PM.

Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0