Re-Use and Encapsulation
Re-Use and Encapsulation
- DEF / USE mechanism
- name a node with DEF
- re-use with USE
- PROTO mechanism
- expose a subset of the fields of collection of nodes
- creates a “class” that can then be instantiated
- EXTERNPROTO mechanism
- allows “class” implementations to be given in a separate file