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 the use of finalize and dispose eventhough garbage collector is working?

3 Answers   Kanbay,


Hello frnds, Actually i am plannig to put fake Xperince letter is it good or not, and please suggest me from where we take it.

1 Answers  


What type of filter does outputcacheattribute class represents?

0 Answers  


Explain the difference between viewbag and viewdata in mvc?

0 Answers  


Explain Bundle.Config in ASP.Net MVC4?

0 Answers  






What is the use of view model in asp.net mvc?

0 Answers  


Explain the advantages of asp.net mvc over asp.net?

0 Answers  


Can two application one using private assembly and other using Shared assembly be stated as a side-by-side executables?

1 Answers  


will there be any issues adding a table without primary keys to a data model?

0 Answers   Microsoft,


Describe the roles of clr in .net framework.?

0 Answers  


What is meant by domain model?

0 Answers  


In which circumstances you used delegates?

5 Answers   HP,


Categories