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

i want the csharp questions&answeres

1495


How can I check the type of an object at runtime?

540


Difference between a sub and a function in c#.

545


What are satellite assemblies? How will you get the different language strings?

491


What is view state c#?

521






What is response redirect in c#?

490


Distinguish between a class and struct?

517


How does dependency injection work c#?

504


1. Describe page life cycle?

1588


What do you mean by delegates and explain different types of delegates?

516


Explain the use of Mutex in C#?

569


What is the difference between convert and parse in c#?

457


What is a property in c#?

480


What is the use of static members with example using c#.net.

501


Can you have more than one namespace in c#?

501