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

In asp.net application, if a webpage or total application seems too slow or getting delayed to load completely in the browser. As a developer, what are the checkings or actions you will take in the application or server side to rectify the slowness or delay load or which are the factors related to this issue? How we can trace it?

1 Answers  


About the Usage of htmlencode and urlencode ?

2 Answers   Cognizant,


Explain about solution explorer window?

0 Answers  


What's the use of formatters in .net?

0 Answers  


Is LINQ performance wise better or using sqlcommand?

1 Answers  






How .net CLR works with n-tier application

4 Answers   HCL, Hughes,


What is application session?

0 Answers  


What is server side session?

0 Answers  


In Crystal Report Refresh Button is not working. when I click on it it givesh error like "missing parameter values " I have used propery of Crystal Viewer like ReuseParameterValuesOnRefresh="True" but this also not working. Plz give me any solution.

1 Answers  


What is Assert Method ?

2 Answers  


What is asp.net master page?

0 Answers  


Interface have Default Modifier Is 'Public'.Where We Will Use The KeyWord In Interface?

3 Answers   Phoenix Technologies,


Categories