IT Community - Software Programming, Web Development and Technical Support

Difference between abstract class and interface

This is a discussion on Difference between abstract class and interface within the C# Programming forums, part of the Software Development category; What is the difference between abstract class and interface? a) All the methods declared inside an interface are abstract whereas ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C# Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 12-17-2007, 03:18 AM
srikumar_l srikumar_l is offline
D-Web Sr.Programmer
 
Join Date: Aug 2007
Posts: 196
srikumar_l is on a distinguished road
Default Difference between abstract class and interface

What is the difference between abstract class and interface?

a) All the methods declared inside an interface are abstract whereas abstract class must have at least one abstract method and others may be concrete or abstract.

b) In abstract class, key word abstract must be used for the methodsWhereas interface we need not use that keyword for the methods.

c)Abstract class must have subclasses whereas interface can’t have subclasses.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
difference between abstract class and interface vijayanand Java Programming 2 11-27-2007 09:19 PM
List out all the similarities/difference between an Abstract class and Interface? H2o ASP and ASP.NET Programming 1 07-24-2007 03:16 AM
What’s the difference between an interface and an abstract class? Sabari Java Programming 1 07-17-2007 05:00 AM
interface extending a class vigneshgets Java Programming 0 05-22-2007 04:13 AM
Abstract Class nhoj Java Programming 1 05-08-2007 05:35 AM


All times are GMT -7. The time now is 08:19 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0