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

Explain a .net mobile example with details? : Microsoft dot net mobile

462


What is the difference between an event and a delegate?

513


What is one way operation?

548


What is a managed code? : Dot net architecture

542


What is code access security (cas)?

556






How does .net mobile work? : Microsoft dot net mobile

497


What is .net mobile forms? : Microsoft dot net mobile

498


What are the options provived by vss to the user? how it will help us while delevoping application?

1738


What is the difference between absolute expiration and sliding-time expiration?

520


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

603


Explain the five stages in a dlx pipeline? : .NET Architecture

494


Explain the race around condition? : Dot net architecture

470


How does an appdomain get created?

543


What is a managed code is dim fs as filestreamobject is a managed code? : .NET Architecture

640


Explain the use of virtual, sealed, override, and abstract.

556