Exforsys

Online Training

Interface and Absract

This is a discussion on Interface and Absract within the Java forums, part of the Programming Talk category; Please tell me what's the different between an interface and absract? If possible kindly explain it with the help ...


Go Back   Exforsys > Programming Talk > Java

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-17-2006, 04:47 AM
Junior Member
 
Join Date: Apr 2006
Posts: 7
Lucy is on a distinguished road
Interface and Absract

Please tell me what's the different between an interface and absract? If possible kindly explain it with the help of an example

Thanks
Lucy
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 12-18-2006, 02:21 AM
Senior Member
 
Join Date: Apr 2006
Posts: 144
caradoc is on a distinguished road
An abstract class can have instance methods that implement a default behavior. An Interface can only declare constants and instance methods, but cannot implement default behavior and all methods are implicitly abstract.
An interface has all public members and no implementation. An abstract class is a class which may have the usual flavors of class members (private, protected, etc.), but has some abstract methods.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

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 -4. The time now is 07:03 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.