what is the difference between interface and abstraction?
Answer Posted / navin c. pandit
In Interface, all the member functions are abstract implicitly
so it is imp. to define all fn. declared inside Interface.
Moreover, we cann't define a fn. or we cann't declare any
member variable in an Interface. Also, we cann't declare or
define any non-abstract method in Interface.
In Abstract class, we can declare an abstract method as well
as we can also define a non-abstract method. We can also
declare a variable member in abstract class.
In both the condition, declared abstract method is
implemented out side the class i.e in derived class which
inherits Interface/Abstract class, whatever you have used.
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
Can we override interface method?
What are the 2 broad classifications of data types available in c#?
What is lock in c#?
How C# 4.0 supports dynamic programming language?
When do you generally use a class over a struct?
How to force my .net app to run as administrator on windows 7?
What are object pooling and connection pooling and difference between them?
Define collections?
How to put assembly in gac?
How is method overriding different from overloading?
What are the collection types can be used in c#?
What is a hashset c#?
What is serialization in dot net?
what are the differences between a class and structure
What is a static in c#?