what is the difference between interface and abstraction?
Answer Posted / ashish gupta
1) In Interface we can give only declarations not
definitions but in abstraction we can hv definitions also.
2) In an Abstraction we must hv at least one abstract
function.
3) Abstraction can not be instantiate .
4) In Interfaces we can not assign access identifier.
5) A class can implement 2 interfaces but can inherit only
one Abstract function.
| Is This Answer Correct ? | 27 Yes | 4 No |
Post New Answer View All Answers
What is datatable in c#?
What are access modifiers used for?
Define an escape sequence, name few strings in escape sequence?
Why do we need private constructor in c#?
What is double c#?
Can an array be null c#?
In c#, what will happen if you do not explicitly provide a constructor for a class?
Differentiate between static class and singleton instance?
Does a class need a constructor c#?
What is global asax in c#?
explain Garbage collector’s functionality on unmanaged code
What is an escape sequence? Name some string escape sequences in c#.
What is variable in c#?
What is different between Boxing and Unboxing?
Explain About Global.asax