Object Types
Object Types
- An object’s type defines its structure and behavior
- Relational: tables = types
- OO: Classes
- Normally defined through a DDL
- DDL / DML distinction blurred…
- Persistent / Transient variables
class SourceProgram : Document {
private:
ENUM language;
public:
compile (STRING parameters);
{ … }
}
d: Document;
my_books: SET[Document];