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
How do I write to the application configuration file at runtime?
What is Video Streaming in .net??
Differnce between managed code and unmanaged code ?
What are the major differences between services and web services?
When do I need to use gc.keepalive?
What is password attribute of the textbox control of .net mobile? : Microsoft dot net mobile
What are the different pipelining hazards? : Dot net architecture
Can you Explain
Difference between type constructor and instance constructor?
What are the five stages in a dlx pipeline? : Dot net architecture
Explain about appdomains?
Explain cache? : .NET Architecture
What is difference between Desktop, Client Server & Web based applications?
What is the use of web.config?
What is different about namespace declaration when comparing that to package declaration in java?