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 xml serialization in c#?

461


what is difference between destruct or and garbage collection ?

505


What is the .NET collection class that allows an element to be accessed using a unique key?

593


Can constructor have return type c#?

630


Give an example of a directcast.

510






Is c# static or dynamic?

493


Explain the difference between arraylist and array and in c#?

500


How is a loop recorder monitored?

493


When To use HashTable In C#

540


What is ulong in c#?

561


What do you mean by saying a "struct is a value type"?

516


What is the purpose of a constructor in c#?

453


What is base class in c#?

529


How do you declare an interface in c#?

477


What is session management in c#?

521