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 Intermediate Language?
What is a virtual memory? : Dot net architecture
What is cache coherency and how is it eliminated? : .NET Architecture
Explain the five stages in a dlx pipeline? : .NET Architecture
Explain the Lapsed Listener problem in .net
how we can fire event in databound column in datagrid without using button?
How does .net remoting work?
what are the fundamental and common properties of .net controls?
Is dim fs as filestreamobject is a managed code? : Dot net architecture
Define dma? : Dot net architecture
How can we perform data binding in atlas?
What is new in the .net 2.0 class library?
Which software is used for .net programming?
What is the purpose of cache? How is it used? : Dot net architecture
What is gui programming? : .NET Architecture