What is the use of inheritance in c#?



What is the use of inheritance in c#?..

Answer / Balram Sarkar

Inheritance in C# allows a class to derive properties and methods from another class, known as a base or parent class. This promotes code reusability, as the derived class inherits the attributes and behaviors of the base class without needing to write the same code again.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What are All kind of access specifiers for a class and for methods

1 Answers  


Can we instantiate abstract class in c#?

1 Answers  


What is default class in c#?

1 Answers  


What is cosole application?

1 Answers  


What is difference between arraylist and list in c#?

1 Answers  


What is super class in c#?

1 Answers  


What are the advantages of generics in c#?

1 Answers  


interface a { Method1() Method2() } class b: a { override Method1() override Method2() } what will happen & why?

5 Answers  


Explain use of abstract and sealed classes in c#?

1 Answers  


What is event and delegates in c#?

1 Answers  


What is difference between the "throw" and "throw ex" in .net?

1 Answers  


What are Uses of CLR

1 Answers   TCS,


Categories