Where The Inheritence is useful?How we decide the situation
of inheritence

Answers were Sorted based on User's Feedback



Where The Inheritence is useful?How we decide the situation of inheritence..

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

Where The Inheritence is useful?How we decide the situation of inheritence..

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

Post New Answer

More Dot Net Framework Interview Questions

What is Global Assembly Cache (GAC) and what is the purpose of it?

2 Answers  


How route table is created in ASP.NET MVC?

1 Answers   NA,


When was the first version of .NET released

1 Answers  


Can you handle all button click events at once in a form? Give coding.

1 Answers   Kanbay,


What is Jit compilers?.how many are available in clr

1 Answers  


What is shared and private assembly ?

3 Answers   Accenture, BirlaSoft,


How can you return string result from Action in ASP.Net MVC?

1 Answers  


What is RouteConfig.cs in ASP.Net MVC 4?

1 Answers  


What is MSIL, IL, CTS and, CLR

1 Answers  


What is JIT and how is works ?

10 Answers  


What is the use of dataadapter ?

5 Answers   Arvato,


What is MVVM design pattern?

1 Answers  


Categories