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
By default, Web API sends HTTP response with which of the following status code for all uncaught exception?
Why do you use the app_code folder in asp.net?
What is user control in asp.net?
What are Caching techniques in .NET
How to turn off cookies for a page?
What is the default Orientation property in a Menu control?
What are cao and sao.
Who can consume WebAPI?
What are assemblies and namespaces and explain the difference between them ?
What do you understand by aggregate dependency?
What’s the use of “GLOBAL.ASAX” file?
What is mvc in asp.net tutorial? : Asp.Net MVC
What are the different authentication modes in asp.net?
In which event are the controls fully loaded?
What is the importance of Global.asax in ASP.NET?