Interview Question

Created by admin on Sat, 17/11/2012 - 17:03
Question: 

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

Language: 
Answer: 
Inheritance is a fundamental feature of an object oriented system and it is simply the ability to inherit data and functionality from a parent object. Rather than developing new objects from scratch, new code can be based on the work of other programmers, adding only new features that are needed.