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 is the importance of updatepanel control?
Explain difference between machine config vs. Web config? : .NET Architecture
Explain the difference between inprocess vs out process session state : Dot net architecture
What is parallel computing?
Different types of authentication modes in .net framework ?
Define pipelining? : Dot net architecture
Explain about validation?
What are different types that a variable can be defined and their scopes ?
What is IL code, CLR, CTS, GAC & GC?
The maximum report processing jobs limit configured by your system administrator has been reached.How I can Solve this problem when i using crystal report to load from my application.
Explain some of the disadvantages due to microsoft.net?
What happens to the winfx technologies?
What is the mesi? : Dot net architecture
Explain about .net garbage collector?
What is cache coherency and how is it eliminated? : Dot net architecture