What is the difference between Abstract and Interface?
Answer Posted / muhammad hussain wazir pakista
1: Abstract class contains abstract and non abstract methods
while interface contains all abstract methods.
2: Interface only contain definition of method no
implementation but Abstract class can have this quality.
3: We can not create object of abstract class.
4: We can create constructor and Destructure Abstract class
can while this can be do in Interface.
5: In interface all methods are abstract and have no keyword
of Abstract with method.
Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
how to prevent a class from being inherited in c#.net?
What is a copy constructor in c#?
what is IDisposal interface
What are the different types of delegation?
What is difference between continue and break in c#?
What is the difference between internal and protected in c#?
How garbage collection deals with circular references.
Define acid rule of thumb for transactions in c#.
Are structs faster than classes?
What is a static field?
What is the use of readkey in c#?
What is type checking in c#?
Explain dataadapter.update method in .net?
What is boolean method?
What is the main purpose of delegates in c#?