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

What is .net mobile input validation. : Microsoft dot net mobile

760


IS IT Possible to inherit the AJAX page from child class which(child) is inherit from page class.Because i should apply some security in child class

1791


what are constructors and destructors?

1943


Is dim fs as filestreamobject is a managed code? : Dot net architecture

735


How can implement drag and drop using atlas?

779


Explain about .net garbage collector?

782


Explain write back and write through caches? : Dot net architecture

803


What is the difference between primary & secondary storage device? : Dot net architecture

754


Define cache coherency? : Dot net architecture

787


What is application frame host?

839


What is password attribute of the textbox control of .net mobile? : Microsoft dot net mobile

724


how to use custom field validation

2284


How to implement the display in the class printdoc (how to resolve the naming conflict) a: no naming conflicts

868


Explain the purpose of cache? How is it used? : .NET Architecture

769


Explain the race around condition? How can it be overcome? : Dot net architecture

753