Advanced Object Modeling

Having refined and tested the Forum model quite extensively, we are in a position to incorporate the concept of Users into the model.

A Forum will have two kinds of users: Normal Users and Moderators. Moderators will be given special privileges to delete posts and move topics, in addition to being allowed to delete entire topics.

Let's think about Users for a moment.

What are their properties (or attributes)? How are they different? The only difference between a Normal User and a Moderator should be the designation or class to which he belongs. Otherwise, they both share a (login) name, password, e-mail, first name, and last name.

Introduction to Enterprise Objects Inheritance

Thus far we have seen how objects map onto ...

Get WebObjects® Developer's Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.