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
Whats new features in Visual Studio 2012?
what are the events for a form?
Explain about httpruntime.cach.get(); method?
Explain about appdomains?
Different types of authentication modes in .net framework ?
how to delete the record using data reader
what is polymorphism and advantage ?
Define cache coherency? : Dot net architecture
How will you do windows authentication and what is the namespace?
Use of Enable view state ? if turn off what happen ?
What is one way operation?
what is diffrent beatween localprinter and networkprinter
Explain hard disk and what is its purpose? : Dot net architecture
Explain Singleton design pattern in .net
So what exactly is the configuration file for then?