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


Please Help Members By Posting Answers For Below Questions

Differences between VS 2005, 2008 and 2010 ?

810


Explain how cache is used? : Dot net architecture

821


State and explain about microsoft.net?

743


How do we do authentications using atlas?

758


How to develop mobile applications using microsoft mobile internet toolkit (mmit) or .net mobile? : Microsoft dot net mobile

728


What are different types that a variable can be defined and their scopes ?

856


What are the types of memory management? : Dot net architecture

711


Is dim fs as filestreamobject is a managed code? : Dot net architecture

735


How can I create a application?

728


What is a virtual memory? : Dot net architecture

748


What is parallel computing?

754


Tell me .net mobile emulators? : Microsoft dot net mobile

751


how to change row background color in gridview

766


So what exactly is the configuration file for then?

760


What is a managed code is dim fs as filestreamobject is a managed code? : .NET Architecture

894