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
What is the use of the default route {resource}.axd/{*pathinfo} ?
what is entity framework?
How do I install .net framework?
what do you mean by table-per-hierarchy?
What is stateless model?
What are Code Blocks in Views?
Explain the advantage of packaging over xcopy in .net?
What are child actions in ASP.Net MVC?
what is csdl?
Will c# 3.0, vb.net 9.0, atlas, or linq be included in the .net framework 3.0?
How we can multiple submit buttons in ASP.Net MVC
Explain how you can send the result back in JSON format in MVC?
mention what is the difference between ado.net and classic ado?
What is partialview in asp.net mvc?
Why to use html.partial in mvc?