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


Please Help Members By Posting Answers For Below Questions

What is difference between c and c sharp?

451


What are the different approaches of passing parameters to a method?

473


Explain how to parse a datetime string?

506


Why we use get and set property in c#?

509


What are predicates in c#?

540






What is type system in c#?

512


Is system a class in c#?

486


Explain the ways to deploy an assembly?

504


Can a abstract class have a constructor?

463


What is type keyword in c#?

527


What is a interface in c#?

469


Explain what is copy constructor?

548


What is datatable and dataset in c#?

480


Explain how can you clean up objects holding resources from within the code?

470


How do I do implement a trace?

534