What is the difference between Abstract and Interface?

Answer Posted / munwar

Interface and abstract class are just same,but both have
their own usability and advantages..

Difference b/w both.
1). Interface is highlevel abstract(means there is no
single implementation), but in abstract class there can be
implementation.
2)Interface does not allow accessfiers like
public,private.. but abstract class allow these accessifiers

3) Interface does not supports contant values but abstract
calss supports constatnt values..

4) Interface supports multiple inheritance but class does
not support multiple inheritance..

5).interface can not implement abstract class but abstract
calss can impelment interface...

Is This Answer Correct ?    12 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to compare numbers and dispaly the largest ? *first thing I wanted to do is to input how many numbers to be compared *and then analyzed the largest then display it.

1481


Where test director stores its data ? Database ,Local file etc...? I need to read this data from Visual Studio 2005 c# client. Regards

1666


What is parse method in c#?

630


What is readline c#?

656


What is new method in c#?

687


What is console write in c#?

675


What will be the output of the following code?

698


What's difference between constants and static readonly?

753


What are the different types of assembly?

777


What is the components of window?

682


Why singleton class is sealed in c#?

692


What is the purpose of static?

717


What is regex replace in c#?

706


Why do we use overloading in c#?

686


Do we get an error while executing the “finally” block in c#?

712