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 lastindexof c#?

484


What is the purpose of c#?

551


What is a three-tier application.

555


What are the 3 logical operators?

560


What are extension methods and where can we use them?

458






Can partial class be inherited?

502


What .exe means?

504


Should I use double or float?

502


What do you mean by abstract class in c#?

501


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

548


What do you mean by jagged arrays in c#?

483


What are primitive types in c#?

533


What debugging tools come with the .NET ssSDK?

692


Give examples for value types?

489


Can we have static indexer in c#?

492