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

Explain the advantages of passport authentication.

0 Answers  


What are the differences between code behind and code inline?

0 Answers  


How does session id work?

0 Answers  


Can we use a static function with a non-static variable?

0 Answers  


what are the advantage in asp.net and what are the question ask for interview in vb.net and asp.net

0 Answers   TCS,






What are directives in asp.net?

0 Answers  


Describe a diffgram ? Write any one use of that?

3 Answers   Siebel,


Explain the difference between or and orelse?

0 Answers  


Do cookies store passwords?

0 Answers  


What is the use of service provider?

0 Answers  


is gateway for sms continue connected for sending sms.how?

0 Answers  


What permissions do asp.net applications posses by default?

0 Answers  


Categories