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

what are the events in ASP.net page life cycle?

1 Answers  


How would one do a deep copy in .NET?

6 Answers   TCS,


In a webpage if i want to give access to only half page ,then what should i do?

3 Answers  


Difference between asp and asp.net ?

4 Answers   Accenture, BirlaSoft, TCS,


Explain http handlers? Where we can use the http handlers?

0 Answers   Accenture,


how can i am search the data from database? just like google

2 Answers  


What are cookies in your browser?

0 Answers  


can we place the same DLL in debug folder two times? (without using strong name )

9 Answers   TCS,


Any disadvantages in Dataset and in reflection ?

1 Answers   DELL,


What is an Interface and What is an Abstract Class?

3 Answers  


Elaborate differentiation between Cache and Application?

0 Answers   QuestPond,


Difference between .NET components and COM components?

2 Answers   Microsoft,


Categories