Adding Method Code

The final step in constructing the class hierarchy is to add method code. You can find the methods by inspecting the programming code that processes the type data. See .

In this example, an Age method was found to apply to everyone in the database. It used the Date of birth and today's date to calculate age. The diagram below shows the Age method attached to the Person class. Also, a method for hiring a new employee is shown along with the method for granting tenure to a professor. There are undoubtedly other methods that can be found. You might also find a different method is necessary for hiring a workstudy person so that the method could be further defined for the Workstudy Class.

Adding method code

Next: . Also see the related content below.

Context for Adding Method Code

Related Articles for Adding Method Code

The Savvy Manager's Guide

is also the author of a book that explains Web Services, service-oriented architecture, and Cloud Computing in an easy-to-understand, non-technical manner.

Web Services, Service-Oriented Architectures, and Cloud Computing: The Savvy Manager's Guide

by with David Dick

This is a guide for the savvy manager who wants to capitalize on the wave of change that is occurring with Web Services, service-oriented architecture, and—more recently—Cloud Computing. The changes wrought by these technologies will require both a basic grasp of the technologies and an effective way to deal with how these changes will affect the people who build and use the systems in our organizations. This book covers both issues. Managers at all levels of all organizations must be aware of both the changes that we are now seeing and ways to deal with issues created by those changes.