Published Objects Implementation
A published object can be implemented in a source code file within a plugin. This way the implementation can be kept private.
The implementation of a published object is defined with the MAXON_DECLARATION_REGISTER attribute. It associates the given published object with the object created within the registration function.
// configure object atom._protonCnt = 6; atom._neutronCnt = 6; atom._electronCnt = 6;
// return the object return atom; }
The implementation of an interface is registered and shared as a published object using the MAXON_COMPONENT_OBJECT_REGISTER attribute. See 接口实现 .