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
difference between data reader and dataset
Define cache coherency and how is it eliminated? : Dot net architecture
Why only boxed types can be unboxed?
How can I create a application?
What is .net mobile input validation. Explain with an example? : Microsoft dot net mobile
What is MS chart control in visual studio?
Explain about code access security?
Explain Singleton design pattern in .net
How does .net remoting work?
Explain the purpose of cache? How is it used? : .NET Architecture
What are the types of memory management? : Dot net architecture
What is textview control of .net mobile? : Microsoft dot net mobile
What is Com Callable wrapper?when it will created?
Differences between VS 2005, 2008 and 2010 ?
Explain different pipelining hazards? : Dot net architecture