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
Are there any parts of the .net framework 3.0 that only work on windows vista?
When using razor views, do you have to take any special steps to protect your asp.net mvc application from cross site scripting (xss) attacks?
What is renderbody?
How to answer for project questions..?
What is the use of web api ? Why web api needed, if you have already restful services using wcf ?
What are the 2 ways of adding constraints to a route?
Is http stateful or stateless?
What is the advantage of mvc?
Describe the gac in the .net framework.
What is entitycontainer? : Entity framework
What is basic authentication in web api?
mention what is code first approach and model first approach in entity framework?
What filters are executed in the end?
mention what is the key advantage of using entity framework or ef?
What is the .net framework?