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

What does the term "green architecture" mean? : .NET Architecture

548


8. Oop-Why and were we use Interfacse and Abstract class.

1579


Define cache coherency and how is it eliminated? : Dot net architecture

516


Explain dma? : Dot net architecture

548


What are bindings?

550






What is a service contract, operation contract and data contract?

522


4. Wcf- what Asych and Sych call and how that works

1426


Can you explain update progress control?

515


What is textview control of .net mobile? : Microsoft dot net mobile

482


What are the main Tools to develop .Net Application?

532


How does an appdomain get created?

547


What is Object Caching in Visual Studio 2010?

591


if there are two application 1 and 2 having a variable x in both app if client1 changes value of x in 1 app client 2 want reads the value of x from 2 app what resultant value will he get

1850


Differences between VS 2005, 2008 and 2010 ?

571


How can we integrate atlas with web services?

517