Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Explain the Session state management options available with ASP.NET?

968


Why session is used in asp.net?

974


How will you load dynamic assembly? How will create assesblies at run time?

879


Name the tools or API for developing or testing web api?

901


What are the differences between primary foreign and unique keys?

1009


Can you explain one critical mapping?

934


What is a viewstate?

929


What happens if an ASP.NET server control with event-handling routines is missing from its definition?

1066


What is web api vs wcf?

978


What is the use of placeholder control? Can we see it at runtime?

1016


How to add DateTime Control in normal DataGrid Server Control?

1049


How to create events for a control?

964


What is considered a service provider?

899


Where is session cookies stored?

915


can s/w quality assurance engineer switch field to programming side i m very much interested in programming but not much good in it

1871