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


Please Help Members By Posting Answers For Below Questions

Why we use get set property in c#?

476


Why do we need private constructor in c#?

469


Is c# substring zero based?

506


How long will it take to learn c#?

527


What is lock statement in C#?

556






What is the difference between method and constructor in c#?

460


What is delegates in c# and uses of delegates?

473


What is the base class of all classes in c#?

511


Explain different properties of object oriented systems.

453


How many variables do you need?

500


Is array value type in c#?

591


What is reference c#?

570


What is generic delegate in c#?

463


Explain the use of virtual, sealed, override, and abstract method?

480


What is default value of enum c#?

464