What is the difference between Abstract and Interface?
Answer Posted / vanam santhosh
1.All the methods declared in interface are abstact whare
as Abstract must have atleast one abstact and others may
Concrete methods.
2.In abstact class Keyword is abstract must be used for the
methods.In Interface need not use the Keywords.
3.Abstact class must have subclass. where ads in Interfcs
need not have subclass.
4.In Abstarct class can extend only one class.where as in
Interface we can extend more than One Interface
| Is This Answer Correct ? | 28 Yes | 16 No |
Post New Answer View All Answers
Does c# have functions?
What is the default value of boolean variable?
What's the difference between class and object?
Is datetime a value type in c#?
What is the difference between list and dictionary in c#?
How to rotate an Image in C#?
Define constructor in c#.
How does bitwise xor work?
Why do we need constructor in c#?
Explain the difference between a struct and a class?
Why do we use ienumerable in c#?
What are the steps to create an assembly and add it to the gac?
How objects are stored in memory?
What are assemblies?
Does c# support multilevel inheritance?