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

Any disadvantages in Dataset and in reflection ?

0 Answers   DELL, Digital GlobalSoft,


How do you do exception management?

1 Answers   Accenture, BirlaSoft,


How do you do client-side validation in .net? How to disable validator control by client side javascript?

0 Answers  


Explain different types of Caching techniques in ASP.NET?

0 Answers   Sans Pareil IT Services,


How is it possible for .NET to support many languages?

0 Answers  






what are the Custom controls in asp.net?

0 Answers   MCN Solutions,


What event fired during, when datagrid click?

1 Answers  


What are the disadvantages of asp.net?

0 Answers  


Why do we need asp.net?

0 Answers  


True or False: To test a Web service you must create a windows application or Web application to consume this service?

1 Answers  


What does ascx stand for?

0 Answers  


How many types of session in ASP.NET

0 Answers   MCN Solutions,


Categories