Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 hard disk and what is its purpose? : Dot net architecture

1003


How does an appdomain get created?

1008


What is the difference between an application and a program?

981


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

2162


What is MS chart control in visual studio?

1289


Explain about validation?

1046


how to set the startup position of the form?

1997


How cache is used? : Dot net architecture

1052


What happens to the winfx technologies?

1057


How is the using() pattern useful? What is idisposable?

999


What is a managed code? : Dot net architecture

1019


What is an interrupt? : .NET Architecture

942


Explain the difference between l1 and l2 cache? : Dot net architecture

1023


Explain .net mobile input controls? : Microsoft dot net mobile

961


So what exactly is the configuration file for then?

1010