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
what is inheritancy where u required ?
Does .NET runtime offer Deterministic Destruction or not?
Explain domestic architecture artifacts? : .NET Architecture
Explain about appdomains?
Explain about the base class library provided by microsoft.net?
Use of Enable view state ? if turn off what happen ?
What is .net mobile lists. : Microsoft dot net mobile
What is the .net class that allows the retrieval of a data element using a unique key?
What is the mesi? : .NET Architecture
Name some changes done since version 3.0?
Describe the Managed Execution Process in .NET?
Explain the number or character entered through keyboard gets converted to equivalent ascii code & it get stored on ram in the binary form. What is the exact procedure on hardware that converts the ascii value to binary? : .NET Architecture
Define dma? : Dot net architecture
What size is a .net object?
What happens to the winfx technologies?