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
What is difference between singleton and static class in c#?
What do you mean by for each loop?
What are the new features in c# 2.0?
What is visual c# net?
Can a string be null c#?
What is difference between class and abstract class in c#?
What is poco c#?
What is a ienumerator?
If casting fails what type of exception is thrown?
What is the use of return in c#?
What is difference between comparable and comparator?
Which is faster array or arraylist in c#?
Explain how to parse a datetime string?
Does c# do array bounds checking?
Why delegates are safe in c#?