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
What is session object? Describe in detail.
What is cached data phone?
What are the security types in ASP/ASP.NET? Different Authentication modes?
List the advantages and disadvantages of user control an custom control?
How can we access static variable?
What is State Management in .Net and how many ways are there to maintain a state in .Net? What is view state?
What is a master page and what does it do?
What is distributed system in asp.net?
What is the main difference between Asp.net and Vb.net?
What is difference between view and partial view?
Explain the purpose of storyboard.targetproperty.
What are the different types of validation controls in asp.net?
Explain the advantages of asp.net.
When cookie will expire?
what is publisher?