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
What is a clickonce application?
what is the difference between master page and content page?
Can you explain control extenders?
What is .net mobile images control. : Microsoft dot net mobile
How to improve the cache performance? : .NET Architecture
how to set the startup position of the form?
What is the importance of updatepanel control?
Explain
What is .net mobile lists. Explain with an example? : Microsoft dot net mobile
What is the access level of the visibility type internal?
Explain about .net garbage collector?
What do you know about machine.config file ?
Explain the race around condition? : .NET Architecture How can it be overcome? : .NET Architecture
Explain about code access security?
What happens to the winfx technologies?