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
How do I edit a dll file?
Define Virtual folder?
What is Event - Delegate?
What is check/uncheck?
What is executescalar in c#?
Who benefits from ajax?
What is private constructor c#?
Explain how obfuscator works in .net
Where is the main method in c#?
What is a datacontract?
Which is faster dictionary or hashtable?
Why do we use stringbuilder in c#?
What do you know about device context?
What is difference between C# and VB.NET?
Describe the types of comments in c#?