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...

Where The Inheritence is useful?How we decide the situation
of inheritence

Answer Posted / gaurav

Inheritance is useful when abstracted logic is required, a real time case, for example your building online store's application all those computer type of products you can define common parent class which would have attributes like brand, processor, RAM, HDD etc. this would be common frame for every product of type computer.
Basically, when you are in situation where you need a common structure you normally create abstract class which should mustInherite.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of the default route {resource}.axd/{*pathinfo} ?

1078


what is entity framework?

1125


How do I install .net framework?

1018


what do you mean by table-per-hierarchy?

1161


What is stateless model?

1025


What are Code Blocks in Views?

1170


Explain the advantage of packaging over xcopy in .net?

1037


What are child actions in ASP.Net MVC?

1113


what is csdl?

1058


Will c# 3.0, vb.net 9.0, atlas, or linq be included in the .net framework 3.0?

997


How we can multiple submit buttons in ASP.Net MVC

1202


Explain how you can send the result back in JSON format in MVC?

1035


mention what is the difference between ado.net and classic ado?

1163


What is partialview in asp.net mvc?

1093


Why to use html.partial in mvc?

1281