WIT Press


Representing Model Classes In C++

Price

Free (open access)

Paper DOI

10.2495/SEHE950061

Volume

12

Pages

9

Published

1995

Size

576 kb

Author(s)

C. Hastie

Abstract

In object programming, the representation of model classes .— those explicit in the design domain — is a central concern. We develop a set of conventions for representing model classes in C++, and provide mechanisms which enforce the conventions. These mechanisms take the form of mixins which prohibit certain forms of bad behaviour. These conventions and support mechanisms are useful to any programmer, but are of particular help to the student, who may otherwise become lost among the many modes of expression offered by C++. 1 Introduction C++ is a large and complex language, designed to be adaptable to several different styles of programming with no avoidable loss in efficiency. In consequence, its many modes of expression tend to confuse the novice and can trap the experienced progra

Keywords