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

Explain the types of errors in c#?

478


What is an argument in c#?

471


What is a console?

496


What is a .exe extension files? How is it similar to .dll extension files?

574


What is a private class in c#?

491






What's difference between constants and static readonly?

533


What are the properties of string?

489


What is data reader in c#?

596


Is array immutable in c#?

478


State whether it is true to test a Web service you must create a windows application or Web application to consume this service or not?

483


What is generic in c#?

453


What is dapper in c#?

460


What is _layout cshtml?

482


Define interface class in c#?

513


Why objects are stored in heap in c#?

478