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
How much is the pay-for-use service if I chose not to use microsoft-sponsored advertising?
How does session work?
Describe paging in asp.net?
How do we sort the data from a dataset?
What is the procedure to create the environment for asp.net? : asp.net mvc
What is the use of web.config file?
How do sessions work?
What is viewstate? In which event of the page life cycle, is the viewstate available?
What are the differences between clr & cts?
Define secured sockets layer.
What are validator? Name the validation controls in asp.net? How do you disable them? Will the asp.net validators run in server side or client side? How do you do client-side validation in .net? How to disable validator control by client side javascript?
IN an ASP.NET Web application if there is any error, how can you debug?
Explain client side state management system.
Explain the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc
How to do parallel database export in remote SQL Server in ESSL time track. It is working for local server but not working for remote SQL Server