Difference between abstract class and interface
Answer Posted / maneswari
Interfaces provide a form of multiple inheritance. A class
can extend only one other class.
Interfaces are limited to public methods and constants with
no implementation. Abstract classes can have a partial
implementation, protected parts, static methods, etc.
A Class may implement several interfaces. But in case of
abstract class, a class may extend only one abstract class.
Interfaces are slow as it requires extra indirection to to
find corresponding method in in the actual class. Abstract
classes are fast.
| Is This Answer Correct ? | 439 Yes | 93 No |
Post New Answer View All Answers
Explain the use of virtual, sealed, override, and abstract.
Can you Explain
Are there any third party logging components available?
Explain
Explain what does the term "green architecture" mean? : .NET Architecture
How can we integrate atlas with web services?
What is Video Streaming in .net??
What is an interrupt? : .NET Architecture
What is .net mobile forms? : Microsoft dot net mobile
What's new in the .net 2.0 class library?
how to create applications by using Visual Studio 2012?
How cache is used? : Dot net architecture
Explain the Lapsed Listener problem in .net
Explain the process of gc?
Explain different pipelining hazards and how are they eliminated? : Dot net architecture