Where The Inheritence is useful?How we decide the situation
of inheritence
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / shipra agarwal
Mostly inheritance requires in large classes where every
time searching and writing of same data is impossible. That
case requires us to define some inherited functions methods
n classes.Whenver they required they simply inherited from
inheritance class where they are already defined along with
their functionality to handling some other data pieces.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is objectcontext? : Entity framework
What is the difference between Finalize and Dispose (Garbage collection)
What is the difference between ViewData, ViewBag and TempData?
What is html.renderpartial?
What are scaffold templates in mvc?
What is the advantage of using asp.net routing?
Why to use “{resource}.axd/{*pathinfo}” in routing in mvc?
What are the difference between asynchronous controller implementation between asp.net mvc 3 & asp.net mvc 4?
What is the 'page life cycle' of an ASP.NET MVC?
How to bind table coloum with gridview column
3 Answers Sypher Technologies,
What is entity framework firstordefault?
What is a model in android?