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
What is the advantage of singleton class?
Which .gang of four. Design pattern is shown below?
What is JIT (just in time)? how it works?
In gridview in editmode if we want to display information in one combobox based on
What is the main method?
Differentiate between dataset and datareader?
What is marshalling and what are different kinds of marshalling?
What are interfaces in c#?
Explain About disco and uddi
Does c# support try-catch-finally blocks?
What is the use of parse in c#?
Why hashtable is thread safe in c#?
Explain the mechanism of VB.NET/C# achieve polymorphism?
Is c# static or dynamic?
Why do we need reflection in c#?