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


Please Help Members By Posting Answers For Below Questions

What is lazy t?

582


How many constructors can a class have in c#?

577


How to rotate an Image in C#?

667


Between windows authentication and sql server authentication, which one is trusted and which one is untrusted?

574


How do I join one form to another in c#?

547






What is the difference between proc. Sent by val and by sub?

558


Explain the differences between static, void and public in c#?

620


How do I unload an assembly?

596


Is c# easier than javascript?

607


What is value c#?

540


What is poco c#?

578


Does c# support try-catch-finally blocks?

558


What is a dictionary in c#?

594


What are the steps to create an assembly and add it to the gac?

540


What is the CTS, and how does it relate to the CLS?

636