Modelling object-oriented software – an introduction
Modelling object-oriented software – an introduction

Start this free course now. Just create an account and sign in. Enrol and complete the course for a free statement of participation or digital badge if available.

Free course

Modelling object-oriented software – an introduction

3.2.6 Kinds of class

The material below is adapted from Schlaer and Mellor (1988), and Coad and Yourdon (1991).

As a complement to textual analysis, attempts have been made to categorise likely classes by type. Aspects of a system domain that can be modelled appropriately as classes include:

  • tangible entities;

  • roles;

  • events;

  • organisational units;

  • abstract entities.

Tangible entities are the physical things in the world of the system domain: aeroplanes, vehicles, reactors, people and so on, i.e. things than can be seen or touched.

Roles are played by people (and other things) in the system domain: employee, student, lecturer, driver and so on. Roles differ from tangible entities in that a single person (a tangible entity) may have a number of different roles, e.g. parent, teacher, library member.

Events. These include any significant circumstance, episode, interaction, happening or incident, e.g. deliveries, registrations, bookings, enrolments. We will discuss the modelling of events in more detail in Section 5.1.

Organisational units. These include any parts of organisational structures to which people or things in the system domain belong – departments, faculties, branches, regions and so on.

Abstract entities. These are things such as plays, novels, pieces of music, theories and political movements. They have an existence but do not correspond to tangible entities. For example, the play Hamlet is an abstract entity, while the books which contain the play are tangible entities.

While consideration of categories such as the above can be useful, you should always remember that the overall purpose is to identify all the classes needed to model significant aspects of the system domain. There will sometimes be classes that do not fit neatly into any of the above categories.

Activity 2

Consider each of our classes for the DVD Library System in terms of the categories above. For each class, decide whether the entities it models fit into one of the five categories, and if so which one.

Discussion

The candidate classes can be categorised as DVD tangible-entity, member-role, abstract-entity, loan-event.

M256_1

Take your learning further

Making the decision to study can be a big step, which is why you'll want a trusted University. The Open University has 50 years’ experience delivering flexible learning and 170,000 students are studying with us right now. Take a look at all Open University courses.

If you are new to University-level study, we offer two introductory routes to our qualifications. You could either choose to start with an Access module, or a module which allows you to count your previous learning towards an Open University qualification. Read our guide on Where to take your learning next for more information.

Not ready for formal University study? Then browse over 1000 free courses on OpenLearn and sign up to our newsletter to hear about new free courses as they are released.

Every year, thousands of students decide to study with The Open University. With over 120 qualifications, we’ve got the right course for you.

Request an Open University prospectus371