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 |
How we can handle the exception at controller level in ASP.Net MVC?
What is .net framework & its benefits?
Can I add mvc testcases in visual studio express?
Which is the best institute in hyderabad to learn DotNet?
152 Answers Cygnet Infotech, Infosys, Student, SVIT, TCS,
What is .net architecture and framework?
What are Validation Annotations?
How to update one of my table in database at 4pm every day how it is possible?
What is domain class model?
Why are there five tracing levels in System.Diagnostics.TraceSwitcher?
What is the .net framework 3.0 (formerly winfx)?
What are child actions in ASP.Net MVC?
What is Dependency Injection in ASP.Net MVC