Introduction to Dylan | Dylan Programming Guide | Dylan Reference Manual | Open Dylan Documentation
Example:
define class <vehicle> (<object>)
slot owner :: <string>,
init-keyword: owner:,
init-value: "Northern Motors";
end;
define class <car> (<vehicle>)
end;
define class <truck> (<vehicle>)
slot capacity,
required-init-keyword: tons:;
end;
Last modified 22 June 2021