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 xml serialization in c#?
what is difference between destruct or and garbage collection ?
What is the .NET collection class that allows an element to be accessed using a unique key?
Can constructor have return type c#?
Give an example of a directcast.
Is c# static or dynamic?
Explain the difference between arraylist and array and in c#?
How is a loop recorder monitored?
When To use HashTable In C#
What is ulong in c#?
What do you mean by saying a "struct is a value type"?
What is the purpose of a constructor in c#?
What is base class in c#?
How do you declare an interface in c#?
What is session management in c#?