Difference between abstract class and interface

Answer Posted / chetan s

1. Interface comes in Inheritance chain while Abstract not
2. One class can inherit muliple interface but it can't
inerit mulitple abstract class
3. Abstract class can have concert method but interface
can't.
4.An abstract class can contain fields, constructors, or
destructors and implement properties. An interface can not
contain fields, constructors, or destructors and it has
only the property's signature but no implementation.
5.Abstract classes are faster than interfaces.

Is This Answer Correct ?    108 Yes 41 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to use custom field validation

2049


Explain 'managed' mean in the .NET context

691


4. Wcf- what Asych and Sych call and how that works

1433


What are the main Tools to develop .Net Application?

534


What is a virtual memory? : Dot net architecture

529






What is the mesi? : Dot net architecture

542


What are the major differences between services and web services?

493


I can't be bothered with cas. Can I turn it off?

528


Explain about validation?

598


Explain about developer benefit from memory management?

537


What is new in the .net 2.0 class library?

693


how to change the title of my window?

1412


What are the five stages in a dlx pipeline? : Dot net architecture

511


What is the mesi? : .NET Architecture

596


Why am I getting an invalidoperationexception when I serialize an arraylist?

483