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
What are the types of serialization?
What do u mean by delegation?
Does unity use c++ or c#?
What is written in c#?
What is variable and its classification?
What exception can an overridden method throw in comparison with the method it is overriding?
What are the differences between a class and a struct?
How big is an int16?
What are types in c#?
What is type keyword in c#?
what is a enumeration in c#
What is the system namespace?
what is c# command?
What is overriding in c#?
What is the boxing and unboxing in c#?