Next: Implementation
Up: From Modula-2 ADT
Previous: From Modula-2 ADT
- The name of the ADT will become the name of the class.
- In all functions the parameter that represents the instance of the ADT
is removed.
- All functions will become public member functions of the class.
- Functions like
Create
will become the constructor of the class.
- Functions like
Terminate
will become the destructor of the
class.
- All variables internal to the ADT will become protected
member variables.
- It is regarded good practice to prepend member variables with an
underscore ('
_
') so the difference between member variables and
other variables is always clear.
SE Praktikum
Tue Aug 13 13:10:22 MET DST 1996