Inheritance

What is the importance of inheritance in c# and why i used?

Questions by amitbaranwal

Showing Answers 1 - 9 of 9 Answers

NASUH

  • Dec 18th, 2007
 


Inheritance is an important object-oriented concept. It allows you to build a hierarchy of related classes, and to reuse functionality defined in existing classes.

  Was this answer useful?  Yes

basically the main advantage of object orineted approach is code reusabilty which help us to improve performance by using less memory for computation.inharitance provide us code reusabilty by accessing method of base class in the derived class instead of creating same methods again and again.
other thing is we can accomodate changes easily by making change in the method of base class.........
i hope u got my point

Classes are inherit from another class. Basically we are using OOPS for reusability, so inhertiance means deriving new class from base class, it occupies less memory.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions