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
What are mutable and immutable types in c#?
What does executescalar return in c#?
Name the two classes are required for implementing a windows service?
What are c# attributes and its significance?
What is entity framework c#?
What is the main purpose of linq?
What is a race condition?
What is managed or unmanaged code?
What are primitive data types in c#?
What is the use of the dispose method in C# ?
Can you store strings in arrays?
Are arrays immutable c#?
What's the implicit name of the parameter that gets passed into the set method/property of a class?
What is the use of flag in c#?
What are generations and how are they used by the garbage collector?