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
Are objects passed by reference in c#?
Can we have 2 main methods in c#?
What are the boolean data types in c#?
What is the difference between struct and class c#?
Explain about finalize method?
What is the concept of strong names?
Can u list some style properties of List Box?
Does c# support multilevel inheritance?
What do you understand by 'access specifiers' in C#?
what is the default access for a class
Explain the serialization in .net
What is inline function in c#?
What is an object and a class?
How do you access a constant field declared in a class?
Is static thread safe?