1. function func() {
= "huhao";//This variable is private and can only be accessed when new object is new. For example, var obj= new func(); is accessible and can also be modified, but can only be modified in new object.
}
= "11"; //This variable cannot be inherited and can only be used to access
="Anhui Province";//This variable cannot be accessed directly, it can only be accessed by var obj= new func(); and at the same time it can be modified
in conclusion:
and address this object is private and invisible. But the newly built objects are developed again.
Attributes are private, visible, and cannot be inherited
= "huhao";//This variable is private and can only be accessed when new object is new. For example, var obj= new func(); is accessible and can also be modified, but can only be modified in new object.
}
= "11"; //This variable cannot be inherited and can only be used to access
="Anhui Province";//This variable cannot be accessed directly, it can only be accessed by var obj= new func(); and at the same time it can be modified
in conclusion:
and address this object is private and invisible. But the newly built objects are developed again.
Attributes are private, visible, and cannot be inherited