Its a bit like Inheritance.
Imagine you have a type called SpaceShip.
All Spaceships will have these attributes but might also have some other specific to themself.
For instance, your CargoShip might have a 'Cargo_hold' attribute when your Fighter might not.
You *could* give the Fighter a Cargo_hold value of 0.
Alternatively you can create a
Your Fighter and your CargoShips now only have the ir
specific attributes PLUS the basic attributes.
This is a small example but imagine if EVERY ship had to have a field for EVERY possible attribute.
In additiom, changing the base structure automatically gets updated to each ship type.
Imagine you have a type called SpaceShip.
Type Spaceship field name$ field topspeed% end type
All Spaceships will have these attributes but might also have some other specific to themself.
For instance, your CargoShip might have a 'Cargo_hold' attribute when your Fighter might not.
You *could* give the Fighter a Cargo_hold value of 0.
Alternatively you can create a
Type CargoShip field basic_cargo.ships field cargo_hold end type type fighter field basic_fighter.ships field missiles% end type.
Your Fighter and your CargoShips now only have the ir
specific attributes PLUS the basic attributes.
This is a small example but imagine if EVERY ship had to have a field for EVERY possible attribute.
In additiom, changing the base structure automatically gets updated to each ship type.