global: The class is visible to help you Top code powering in virtually any application namespace. In the event that an interior classification are worldwide, their external class must become in the world.
A good example is that you usually do not perform a king-Detail relationships in the Investment object as Asset can't be the child during the a king-Detail relationship
- private: The procedure or changeable is seen simply within the identifying class.
An illustration is you don't perform a king-Detail dating regarding the House object given that Resource can't be the kid within the a master-Detail dating
- protected: It’s noticeable to the fresh new determining classification and you will subclasses.
An example is you don't perform a king-Detail relationships about Advantage target since the House can't be the kid in the a king-Detail relationships
- public: It’s visible to one Apex password in the same software namespace yet not accessible to almost every other namespaces.
An example is that you cannot create a master-Outline dating regarding Resource target as the Advantage cannot be the little one from inside the a king-Detail dating
- global: It can be utilized from the one Apex password running anywhere in the organization, in almost any namespace. If the a method is international, its classification should be in the world too. Read more