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
What are bindings?
What is Video Streaming in .net??
What is the access level of the visibility type internal?
What size is a .net object?
Difference between type constructor and instance constructor?
Explain about continuable exceptions?
Are there any third party logging components available?
Define cache coherency and how is it eliminated? : Dot net architecture
Why am I getting an invalidoperationexception when I serialize an arraylist?
What are library functions?
Explain pipelining? : Dot net architecture
Can I create my own permission set?
readonly syntax ?
How do we do authentications using atlas?
How do I prevent concurrent access to my data?