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
Why do we use static methods in c#?
what is partial assembly reference
What is session and cookies in c#?
How is a string immutable?
Why linq is having select clause at the end?
What is difference between assembly and dll?
What do you mean by sealed classes and static classes?
What is the c# equivalent of c++ catch (...), Which was a catch-all statement for any possible exception?
How do you escape a character?
Can abstract class be sealed?
Can you use all access modifiers for all types?
What are the 3 elements of delegation?
What is the default value of object in c#?
What is the difference between new and override in c#?
How do I create a multi language, multi file assembly?