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
Explain the types of errors in c#?
What is an argument in c#?
What is a console?
What is a .exe extension files? How is it similar to .dll extension files?
What is a private class in c#?
What's difference between constants and static readonly?
What are the properties of string?
What is data reader in c#?
Is array immutable in c#?
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?
What is generic in c#?
What is dapper in c#?
What is _layout cshtml?
Define interface class in c#?
Why objects are stored in heap in c#?