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 are mutable and immutable types in c#?
What is collection class c#?
Can a constructor be static in c#?
Define parsing? Explain how to parse a datetime string?
What are the examples of data types?
Do loops c#?
Do unused Namespaces in c# affect run-time performance?
Does main have to be static c#?
if a base class has a number of overloaded constructors, and an inheriting class has a number of overloaded constructors; can you enforce a call from an inherited constructor to a specific base constructor?
What is arraylist c#?
What is the use of protected in c#?
What is a trace and asset? Explain some differences?
What is class method?
Int map to which .net types?
What is the difference between static and private constructor in c#?