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 the asp.net control toolkit?
Explain the difference between an exe and a dll?
How can we inherit a static variable?
Can you edit data in the Repeater control? Which template must you provide, in order to display data in a Repeater control? How can you provide an alternating color scheme in a Repeater control? What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control?
What does clearing cache?
What are validator? Name the validation controls in asp.net? How do you disable them?
What is advantage of code behind coding in ASP.NET?
List of words of preprocessor in .net?
What is the difference between an htmlinputcheckbox control and an htmlinputradiobutton control?
How does a content page different from a master page?
Why session is used in asp.net?
Why we use content place holder in asp.net?
Explain advantages of caching?
What is a web based system?
List the advantages and disadvantages of user control an custom control?