What?s the difference between an interface and abstract class?
Answer Posted / narender reddy soma
Apart from usual differences between class and interface,
An abstract class is abstract in nature meaning - You can
have abstract methods and concrete as well.So what? you can
provide the generic implementation in concrete method and
leave abstract methods to sub class for
customization.Sounds good?
So, being abstract class it can exist as customized
implementation of its sub class.Not alone as it has
abstract method which doesnt have implementation hence
making it incomplete.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is an inheritance in c#?
What is the difference between “out” and “ref” parameters in c#?
Why do we use void in c#?
What is difference between ienumerable and list?
How you will create satellite assemblies?
What is the difference between ienumerable and enumerator?
What is generic delegates in c#?
What does args mean in c#?
What is the difference between abstract and virtual?
Explain lock, monitors, and mutex object in threading.
Are c# strings null terminated?
Is array thread safe c#?
How do you prevent a class from being inherited?
What is object array in c#?
What are static and dynamic variables?