Difference between abstract class and interface
Answer Posted / shreeram sahu
1.abstract class contain abstract and non abstract methods
but interface contain only abstract methods.
2.abstract method can be declared in public or protected
section. but all components of interface by default are
public.
3.a class can inherit only one abstract class but a class
can implement any no of interfaces.
4.abstract class components are directly reffered in
subclass.butinterface components must be prefixed with the
name of the interface.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Explain the race around condition? How can it be overcome? : Dot net architecture
What is an interrupt? : Dot net architecture
What is the problem with .net generics?
Explain different pipelining hazards? : Dot net architecture
Explain the race around condition? : .NET Architecture
Explain Intermediate Language?
Define cache? : Dot net architecture
Explain about microsoft visual studio?
What is boxing and unboxing? Does it occure automaatically or you need to write code to box and unbox?
What are the important principles of soa (service oriented architecture)?
What is WPF and WCF?
How to implement the display in the class printdoc (how to resolve the naming conflict) a: no naming conflicts
Differences between VS 2005, 2008 and 2010 ?
Explain different pipelining hazards and how are they eliminated? : Dot net architecture
What do you know about machine.config file ?