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 3 types of properties in c# with an example?
What does out mean c#?
2. What happened when BO object has been called?
What is the use of nullable types in c#?
Explain use of abstract and sealed classes in c#?
What is a destructor in c#?
What is yield break in c#?
How do I create a single-file assembly?
What are the 3 different types of arrays?
What is the use of ienumerable?
What does == mean in c sharp?
Why do we use delegates?
What are the 4 pillars of any object oriented programming language?
What is tpl in c#?
What are the advantages of using delegates in c#?