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

Explain bundle.config in mvc4?

0 Answers  


what is entity sql?

0 Answers   Microsoft,


Can u tell me differences which are introduced in .Net 1.1 and 2.0 and 3.0 and also in 3.5 ? by detailed?

1 Answers   ABC,


What is the use of web api ? Why web api needed, if you have already restful services using wcf ?

0 Answers  


Are there any parts of the .net framework 3.0 that only work on windows vista?

0 Answers  






Explain JSON Binding?

0 Answers  


How do you register the dotnet component or assembly ?

1 Answers   Accenture, BirlaSoft,


what is client wins and store wins mode in entity framework concurrency?

0 Answers   Microsoft,


What is the advantage of mvc?

0 Answers  


How to free the memory that is not used by an object in garbage collection?

4 Answers   IBM,


Explain Sections is ASP.Net MVC?

0 Answers  


What is the meaning of unobtrusive javascript?

0 Answers  


Categories