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

Explain is development of a mobile web application with asp.net is very easy? : Microsoft dot net mobile

731


Explain about generation?

759


What is password attribute of the textbox control of .net mobile? : Microsoft dot net mobile

702


What is gui programming? : .NET Architecture

723


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

840


what is sessions and cookies take one example simple way to understand

2085


how to use custom field validation

2264


What is .net mobile lists. : Microsoft dot net mobile

688


What is the difference between an event and a delegate?

755


How can I write my own .NET host?

778


Can I create my own metadata attributes?

755


what is the difference between master page and content page?

2355


What is the purpose of Treeview control?

760


what are the fundamental and common properties of .net controls?

1851


Explain the five stages in a dlx pipeline? : .NET Architecture

711