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
Explain a .net mobile example with details? : Microsoft dot net mobile
What is the difference between an event and a delegate?
What is one way operation?
What is a managed code? : Dot net architecture
What is code access security (cas)?
How does .net mobile work? : Microsoft dot net mobile
What is .net mobile forms? : Microsoft dot net mobile
What are the options provived by vss to the user? how it will help us while delevoping application?
What is the difference between absolute expiration and sliding-time expiration?
How to implement the display in the class printdoc (how to resolve the naming conflict) a: no naming conflicts
Explain the five stages in a dlx pipeline? : .NET Architecture
Explain the race around condition? : Dot net architecture
How does an appdomain get created?
What is a managed code is dim fs as filestreamobject is a managed code? : .NET Architecture
Explain the use of virtual, sealed, override, and abstract.