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 are custom exceptions in C#?
Is linkedhashset synchronized?
Why do we need properties in c#?
Why c# is called c sharp?
Structs are largely redundant in c++. Why does c# have them?
How to override a function in c#?
What is dependency in software?
What is console write in c#?
What is executereader in c#?
Can we have only “try” block without “catch” block in c#?
Define c# and list the features.
What is entity framework c#?
What are boxing and unboxing?
What is interface inheritance?
How do you set a class path?