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?



Can you explain what inheritance is and give an example of when you might use it? ..

Answer / 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

More ASP.NET Interview Questions

Explain which is best suited place in the Application Start and Session_Start subroutines with an example?

3 Answers   Siebel,


What is Fragment Caching in ASP.NET?

2 Answers   MCN Solutions, pspl, Wipro,


What is cache in asp net?

0 Answers  


Types of session management in ASP.NET?

1 Answers   Microsoft,


can u any one tell me clearly where is stored cache datas?

2 Answers   Apollo,


What is ispostback method in asp.net? Why do we use that?

0 Answers  


what is the use of asp.net

3 Answers   ABC,


What are the differences between application object and session object?

0 Answers  


how to write code for role based security

2 Answers  


What is the need of client side and server side validation ?

1 Answers   Keane India Ltd,


Explain server-side scripting and client-side scripting.

0 Answers  


How to find out what version of asp.net I am using on my machine?

0 Answers  


Categories