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

will there be any issues adding a table without primary keys to a data model?

1101


Can I add mvc testcases in visual studio express?

1015


what is entity framework?

1084


What is .net framework used for?

1027


How to change the action name in mvc?

995


mention what is csdl, ssdl and msl sections in an edmx file?

1021


Does .NET Framework support SAX?

1019


What is the difference between entity framework and mvc?

1061


Can you use Razor code in Javascript in ASP.Net MVC?

1207


Why should we go for entity framework?

1012


How to use multiple submit buttons in asp.net mvc?

1200


What is attribute routing in mvc?

1127


What is the importance of NonActionAttribute?

1062


What is .net core framework?

1005


explain why t4 entity is important in entity framework?

1047