What?s the difference between an interface and abstract class?
Answer Posted / nikhil
Difference
1. Interface doesn't allow accessibility modifier where as
we can specify accessibility modifier (public, private,
protected) for an abstract class.
2. Interface doesn't provide the implementation of the
members declared. This is not the case with abstract class
3. A class can inherit one and only one abstract class,
where as a class can implement one or more interfaces
| Is This Answer Correct ? | 10 Yes | 0 No |
Post New Answer View All Answers
Explain the difference between and xml documentation tag?
Is post back in c#?
Differentiate between object pooling and connection pooling in c#?
Can hashtable have duplicate keys?
What is the difference between list and arraylist in c#?
What is virtual class in C#?
Define Final Class in C#
How C# 4.0 supports dynamic programming language?
Why do we use stringbuilder in c#?
What is difference between singleordefault and firstordefault?
What is the difference between integer and double?
Can main method be final?
What is void method?
What is foreach loop in c#?
What is difference between array and collection in c#?