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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.