Difference between abstract class and interface

Answer Posted / ashish gupta

1)Abstract class can have either declaration or definition
of any method,however an interface must declare a method
and it can not define it.

2)An interface makes some sort of contract to its
implementing classes to define all the declared methods
within those classes.

3)A class/subclass should Extend the abstract class while a
class/subclass should Implement the interface.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain is development of a mobile web application with asp.net is very easy? : Microsoft dot net mobile

711


What is difference between .net and visual studio?

716


What is cache coherency and how is it eliminated? : .NET Architecture

737


What does the term "green architecture" mean? : .NET Architecture

732


How to develop mobile applications using microsoft mobile internet toolkit (mmit) or .net mobile? : Microsoft dot net mobile

700


how to change row background color in gridview

736


What is the purpose of Treeview control?

739


what is inheritancy where u required ?

1725


What is the procedure on hardware that converts the ascii value to binary? : .NET Architecture

730


Difference between type constructor and instance constructor?

777


What is the use of CLR in .NET?

769


hi, kindly send WWF(.net 3.5) pdf notes to my id. thanx in advance, chays

2077


How cache coherency is eliminated? : Dot net architecture

677


What are public and private assemblies ?

721


Explain the purpose of cache? How is it used? : .NET Architecture

735