This illustration depicts how inheritance works. It shows that the fields and methods within the Employee class can be used by any class that inherits from it.

The figure shows a diagram of classes and subclasses with the following hierarchy:

End of list.

Both the FullTimeEmployee and PartTimeEmployee class inherits from Employee. This means that both of these classes contain the Employee fields and methods. However, they can also add their own unique fields or methods. For example, the FullTimeEmployee can earn a bonus, so there is a bonus field. The PartTimeEmployee must track their hours, so there is a schedule method.

End of description.