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
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.
Where test director stores its data ? Database ,Local file etc...? I need to read this data from Visual Studio 2005 c# client. Regards
What is parse method in c#?
What is readline c#?
What is new method in c#?
What is console write in c#?
What will be the output of the following code?
What's difference between constants and static readonly?
What are the different types of assembly?
What is the components of window?
Why singleton class is sealed in c#?
What is the purpose of static?
What is regex replace in c#?
Why do we use overloading in c#?
Do we get an error while executing the “finally” block in c#?