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
will there be any issues adding a table without primary keys to a data model?
Can I add mvc testcases in visual studio express?
what is entity framework?
What is .net framework used for?
How to change the action name in mvc?
mention what is csdl, ssdl and msl sections in an edmx file?
Does .NET Framework support SAX?
What is the difference between entity framework and mvc?
Can you use Razor code in Javascript in ASP.Net MVC?
Why should we go for entity framework?
How to use multiple submit buttons in asp.net mvc?
What is attribute routing in mvc?
What is the importance of NonActionAttribute?
What is .net core framework?
explain why t4 entity is important in entity framework?