Difference between abstract class and interface
Answer Posted / geetika.......:)
1)all methods in interface need to be defined in class that implemented it.but abstract class may define all some or none of the methods declared in it.
2)abstract class cant instantiate object but class with interface can
3)interface do not have constructors abstract classes have
4)class may implement number of interfaces but can extend only one abstract class
5)variables must be initialized in interface but its not necessary in abstract class.
6)interface has abstract functions but abstract class has abstract as well as concrete functions.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How is the using() pattern useful? What is idisposable?
What is a clickonce application?
What is gui programming? : .NET Architecture
what is the difference between master page and content page?
What are public and private assemblies ?
What are the options provived by vss to the user? how it will help us while delevoping application?
Define cache coherency? : Dot net architecture
Explain the purpose of cache? How is it used? : Dot net architecture
What is Video Streaming in .net??
Describe the advantages of writing a managed code application instead of unmanaged one. What is involved in certain piece of code being managed?
how to add list of items in a web application and win application?
What is password attribute of the textbox control of .net mobile? : Microsoft dot net mobile
Explain what does the term "green architecture" mean? : .NET Architecture
What are relation objects in dataset?
Explain .net mobile input controls? : Microsoft dot net mobile