Scope indicator that makes an instance variable visible to subclasses that inherit from the class containing the instance variable.
Core API See also access control for usage. Defines a method to be protected - can only be executed from within the class (any instance) and any subclass (of any instance) #uses a method format # from within the class def mpm(num) do something end protected :mpm # must be after def self.mpm(1) # can be anywhere in class
A Visibility level applied to an Attribute or an Operation, indicating that only code for the Classifier that contains the member or for its Subclasses can access the member.
like private except that inheriting classes are allowed to access the variable, object or class thus labeled.
A Java keyword used in a method or variable declaration. It signifies that the method or variable can only be accessed by elements residing in its class, subclasses, or classes in the same package.
Throughout ArticSoft products, the term protected is used to mean that information cannot be accessed (used) if it has been protected, unless the user has the necessary authority. Protection is applied using cryptography. When information is protected it is encrypted. The cryptographic key needed to remove that protection is made available to authorized users. Once it is in their keystore, they will be able to access (view) that protected information. See also cryptography.
In C++, access to the class member is restricted to the class (and all derived classes) in which it is defined, friend classes, and friend functions.
One of the four access modifiers in Java. If an element or method is denoted as protected, it is accessible from any class within the same package as the class that defined it. It is also accessible to any subclasses of the defining class.
Pertaining to a class member that is only accessible to member functions and friends of that class, or to member functions and friends of classes derived from that class. Contrast with private, public.
A Java keyword used as an access modifier to indicate that this member is visible only to the class in which it is defined, any subclass of that class, or any class in the same package.
accessible in the class and its subclasses only
By declaring that a member of a class is protected, you indicate that subclasses are allowed to access the member, though other nondescendant classes are not. Protected members are preceded by a "#" in the class diagram.
The protected keyword is a visibility modifier that can be applied to method and field variables of classes. A protected field is visible only within its class, within subclasses, or within the package of which its class is a part. Note that subclasses in different packages can access only protected fields within themselves or within other objects that are subclasses; they cannot access protected fields within instances of the superclass.
A partition within an object that can contain data and procedures, which can only be used by the procedures within that object, or objects of an offspring class.
Access modifier that renders class members invisible to components outside of a class with the exception of sub-classes.