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
Int map to which .net types?
What does namespace mean?
Perfect Example Of While And Do-While Loop In C#.Net ?
what are windows services?
Illustrate the process of code compilation in c#?
Suppose two interfaces have same method, so how will you implement these methods in derive class?
In which order the destructor is called for an inherited class?
Major difference between Basic httpbinding and WShttpbinding?
What is the default value of datetime in c#?
How would you describe encapsulation in c#?
Can we inherit class that contains only one private constructor?
What do you know about WM_CHAR message?
What is system console writeline in c#?
Is there an equivalent of exit() for quitting a c# .net application?
What is meant by enumerable in c#?