When should you use Abstract Class vs Interface while
programming? Give 1 Example
Answer Posted / rupali
Abstract class can contain non abstract method.
When we want that all subclass must implement all methods of
base class ;In such situation use interface.In other hand
when we want only some method of base class in our subclass
then use base class as abstract class because abstract class
can contain non-abstract method.
| Is This Answer Correct ? | 45 Yes | 14 No |
Post New Answer View All Answers
Explain hard disk and what is its purpose? : Dot net architecture
How does an appdomain get created?
What is the difference between an application and a program?
what are the fundamental and common properties of .net controls?
What is MS chart control in visual studio?
Explain about validation?
how to set the startup position of the form?
How cache is used? : Dot net architecture
What happens to the winfx technologies?
How is the using() pattern useful? What is idisposable?
What is a managed code? : Dot net architecture
What is an interrupt? : .NET Architecture
Explain the difference between l1 and l2 cache? : Dot net architecture
Explain .net mobile input controls? : Microsoft dot net mobile
So what exactly is the configuration file for then?