Mar 8, 2010

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

When you want to inherit (use the functionality of) another class.
 Example: With a base class named Employee, a Manager class could be
derived from the Employee base class.

No comments:

Post a Comment