Build > Scrypto > Component Ownership — View on GitHub
Scrypto allows a component to own other components, similar to how a component can own vaults. If a component is owned by another component, its methods may only be accessed by the blueprint of the parent component.
An example of component ownership:
use Note in the above example how the name of the struct gets an automatic suffix of Component when instantiated.
