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

Describe session handling in a webfarm?

0 Answers  


Explain how asp.net different from asp?

0 Answers  


Suggest 3 best practices in detail for for Developing High Performance Web and Enterprise Applications

2 Answers   Techno Solutions,


Explain the overview of asp.net?

0 Answers  


What are the advantages of Web API?

0 Answers  


What is role-based security?

1 Answers  


What is mta?

0 Answers  


What are asynchronous callbacks?

0 Answers   Accenture,


About Global .asax ?

6 Answers   Satyam,


What is pre-init event in ASP.NET 2.0 page life cycle?

2 Answers   Fulcrum Logic,


What kind of data can be stored in viewstate?

0 Answers  


What is application variable in asp.net?

0 Answers  


Categories