Can you explain what inheritance is and give an example of
when you might use it?



Can you explain what inheritance is and give an example of when you might use it? ..

Answer / tza

There are two kinds of inheritance. They are Generalization
and specialization. Generalization is bottom to up function
and specialization is top to down function.
Example: We have one class. this class is called Employee.
and then employee class includes the following class. There
are Programmer,Staff and Manager. Because employee class
have ID,Name, and salary. If u want to call programmer class
to employee that is called generalization. and if u want to
call employee class to staff that is called specialization.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

Differentiate globalization and localization.

0 Answers  


What are sessions and cookies?

0 Answers  


What is the life cycle of web page?

0 Answers  


What are the major built-in objects in ASP.NET?

0 Answers   MindCracker,


Can I stream live content/events?

0 Answers  






What is a pixel url?

0 Answers  


What is the difference between ASP and ASP.NET?

4 Answers   Sans Pareil IT Services, TCS,


Tell About Global.asax ?

3 Answers   Keane India Ltd,


what to magage the state manament in asp.net with respect to in_prock and out_prock

1 Answers   Aviva,


What does WSDL stand for?

10 Answers   Siebel Systems,


What is the difference between c# and .net?

0 Answers  


How do you pass session values from one page to another ?

4 Answers   Digital GlobalSoft,


Categories