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 difference between c and c sharp?
What are the different approaches of passing parameters to a method?
Explain how to parse a datetime string?
Why we use get and set property in c#?
What are predicates in c#?
What is type system in c#?
Is system a class in c#?
Explain the ways to deploy an assembly?
Can a abstract class have a constructor?
What is type keyword in c#?
What is a interface in c#?
Explain what is copy constructor?
What is datatable and dataset in c#?
Explain how can you clean up objects holding resources from within the code?
How do I do implement a trace?