Difference between interface and abstract class [Resolved]

Posted by Abhisekjani under C# on 3/22/2011 | Points: 10 | Views : 98433 | Status : [Member] | Replies : 4
what is the difference between abstract class and interface...........




Responses

Posted by: Mesh_2010 on: 3/22/2011 [Member] Starter | Points: 25

Up
0
Down

Hi,

difference between an interface and abstract class

In the interface all methods must be abstract; in the abstract class some methods can be concrete. In the interface no accessibility modifiers are allowed, which is ok in abstract classes.

Thanks
RameSH sinGH

Abhisekjani, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Geekgirl on: 10/25/2011 [Member] Starter | Points: 25

Up
0
Down
Abstract Class
1.It can contain Concrete methods(methods with implementation) So in other words, Abstract class can contain methods with both implemetaion
and without implementation
2.Multiple inheritance is not possible in case of abstract class
3.Access Specifiers are been Supported in abstract class


Interface
1.Does not contain any concrete methods
2.Multiple Inheritance is possible with interface
3.Access Specifiers are not supported in Interface





Abhisekjani, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: debal_saha-9451 on: 1/31/2012 [Member] Starter | Points: 25

Up
0
Down
See the Difference between abstract class and Interface
http://silverlightpractice.blogspot.in/2012/01/what-is-difference-between-abstract.html


Abhisekjani, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response