Can you explain what inheritance is and give an example of
when you might use it?
Answer Posted / 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 View All Answers
Define common type system?
What is sta?
What is the purpose of master page?
How many types of validators are there in asp net?
How can we apply themes to an asp.net application?
How do session tokens work?
What is is post back property in asp net?
How ViewstateMac works?
They mostly asked difference between versions of technologies
What is a web based system?
What are the three parts of an http response?
Is asp.net still used?
From which base class all web forms are inherited?
Explain the asp.net page life cycle.
What is the latest version of asp.net?