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
how do you truncate a table using entity data model?
what is lazy loading in entity framework?
Define the core components of an ASP.NET MVC application?
Can you explain renderbody and renderpage in mvc?
What is an asynchronous controller in asp.net mvc?
What are Validation Annotations?
What is the meaning of unobtrusive javascript?
Explain the methods used to render the views in mvc?
Will the name change be reflected in any of the existing .net framework 2.0 apis, assemblies, or namespaces?
What type of filter does outputcacheattribute class represents?
What is the use of action filters in an mvc application?
What is the .net framework 3.0 (formerly winfx)?
Explain what languages does the .net framework support?
The order of the filters that get executed, if the multiple filters are implemented?
What is the purpose of a web form?