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
Explain the Session state management options available with ASP.NET?
Why session is used in asp.net?
How will you load dynamic assembly? How will create assesblies at run time?
Name the tools or API for developing or testing web api?
What are the differences between primary foreign and unique keys?
Can you explain one critical mapping?
What is a viewstate?
What happens if an ASP.NET server control with event-handling routines is missing from its definition?
What is web api vs wcf?
What is the use of placeholder control? Can we see it at runtime?
How to add DateTime Control in normal DataGrid Server Control?
How to create events for a control?
What is considered a service provider?
Where is session cookies stored?
can s/w quality assurance engineer switch field to programming side i m very much interested in programming but not much good in it