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

How much is the pay-for-use service if I chose not to use microsoft-sponsored advertising?

1009


How does session work?

980


Describe paging in asp.net?

1202


How do we sort the data from a dataset?

1030


What is the procedure to create the environment for asp.net? : asp.net mvc

1116


What is the use of web.config file?

1056


How do sessions work?

988


What is viewstate? In which event of the page life cycle, is the viewstate available?

1059


What are the differences between clr & cts?

1133


Define secured sockets layer.

1000


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?

1092


IN an ASP.NET Web application if there is any error, how can you debug?

1108


Explain client side state management system.

1057


Explain the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc

1028


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

6718