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 happens when I install the .net framework 3.0? How can I upgrade if I already have the .net framework 2.0 installed?
What is .net architecture?
Is .net framework 4.8 the last version?
i just want to write an exam regarding .net?plz give me information about taking a test?where to pay 4 d exam,exam centre?
When using aspx view engine, to have a consistent look and feel, across all pages of the application, we can make use of asp.net master pages. What is asp.net master pages equivalent, when using razor views?
mention what is the key advantage of using entity framework or ef?
Mention some action filters which are used regularly in ASP.Net MVC?
What is session state management?
What is the significance of nonactionattribute?
How route table is created in ASP.NET MVC?
differences between poco, model first and data first approach?
Is it possible to unit test an mvc application without running the controllers in an asp.net process?
Explain what platforms does the .net framework run on?
What are HTML Helpers, AJAX Helpers in ASP.Net MVC?
What is the benefit of entity framework?