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 assembly and namespace?

474


How do generics work in c#?

488


What is dao in c#?

490


Are classes passed by reference in c#?

483


What is before string in c#?

496






What is namespace in oops?

494


Is string a primitive data type in c#?

504


When is a class declared as a class abstract?

584


What is yield c#?

500


Is array value type in c#?

589


What is the difference between list and ilist in c#?

484


What is private virtual in C#?

588


Explain about Destructor method?

549


Why do we need properties in c#?

495


I wish to create a windows application to perform a similar function as that of the "Search" which is provided to look for related files and folders in the System.. What steps must i follow??

1534