First, the access range of the private, public, and protected access labels.
PRIVATE: It can only be accessed by 1. functions in this class, 2. Other functions.
Cannot be accessed by any other user, nor can the object of this class be
Summary:Within a class, its members (including member variables and member methods) can be interviewed by other classes, depending on the modifier of that member, and whether a class can be visited by other classes depends on the class's modifiers.
In Java:
The access permissions in Java include public, private, protected, and default package access permissions. If the attribute methods in the class do not show the specified access permission, the package access permission is granted, I like
Analyze the public, protected, private, and default access permissions of java from the perspective of instances, publicprotected
1. public
Same package
1. Internal
Public class A {public int f = 1; public void m1 () {} public void m2 () {f = 2;
2015-05-08 00:15 3896 people read review (US) Collection report This article has been included in:Classification:Advanced Software Development (419) Author of similar articlesX
unix/linux Miscellaneous (118) Author of similar articlesX
The $ _ SERVER variable in PHP5 is no longer protected by magic_quotes_gpc. In the php5 environment, our $ _ SERVER variable will no longer be protected by magic_quotes_gpc. As for how the program can enhance its security, we will summarize how to
In the first version of iOS:We declare both the property and the underlying instance variable for the output, when the property is a new mechanism for the OC language, and you must declare the instance variable that corresponds to it, for
Abstract: This article is a reflection on the previous post of bbs c/C ++. When I saw the post, I suddenly felt that I had timed out. It seems that I am getting unfamiliar here. This article attempts to discuss how the access control operator works,
1. Protected access control characters can be used for methods and member variables.
2. Methods and member variables declared as protected can be accessed by all classes in the same package, just like the default modifier package.
3. Can be accessed
In the PHP5 environment, our $_server variable will no longer be protected by MAGIC_QUOTES_GPC, as to how the program strengthens its security, below we summarize how to protect the cookie,get,post,files data in PHP Oh, If you need a friend, please
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.