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
What is lastindexof c#?
What is the purpose of c#?
What is a three-tier application.
What are the 3 logical operators?
What are extension methods and where can we use them?
Can partial class be inherited?
What .exe means?
Should I use double or float?
What do you mean by abstract class in c#?
What is the CTS, and how does it relate to the CLS?
What do you mean by jagged arrays in c#?
What are primitive types in c#?
What debugging tools come with the .NET ssSDK?
Give examples for value types?
Can we have static indexer in c#?