What is an inheritance ?Give an example in which inheritance is used?



What is an inheritance ?Give an example in which inheritance is used?..

Answer / Ishwar Chandra

Inheritance is a mechanism that allows one class (derived or child class) to acquire the properties and behaviors of another class (base or parent class). An example of inheritance in C# is creating a derived class Car from a base class Vehicle: class Car : Vehicle {...}. The derived Car class inherits all members of the base Vehicle class.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is helper method in c#?

1 Answers  


What is getenumerator?

1 Answers  


3. Describe the process of interact UI to BAL n DAL?

2 Answers   Mphasis,


What is the default scope of a class in c#?

1 Answers  


Is versioning applicable to private assemblies?

1 Answers   Arigo Infotech,


Write the syntax for catching an exception in c#?

1 Answers  


What are object pooling and connection pooling and difference? Where do we set the Min and Max Pool size for connection pooling?

1 Answers  


What is the use of parse in c#?

1 Answers  


What is difference between ienumerable and iqueryable in c#?

1 Answers  


Define boxing and unboxing in c#?

1 Answers  


What is func c#?

1 Answers  


I need code to connect ohter systems in the LAN and i want to display my website image over there and i want explain as a admin through phone. So i need code to access other system using C-Sharp. Any one please help me.Please give me the code. Advace thanks.

1 Answers   Excel,


Categories