Home > Back-end >  Questions about multithreading costs
Questions about multithreading costs

Time:09-28

BaoZiPu class variables bz why can directly call Baozi attribute flag in the class?

CodePudding user response:

,,,,,, bz type is baozi, so can ah

CodePudding user response:

refer to the original poster bian313491020 response:
BaoZiPu class variables bz why can directly call Baozi attribute flag in the class?


Because in the class instantiation BaoZiPu, joined the BaoZi bz type of parameters, and assigned to the class variables bz,

CodePudding user response:

Because two classes in the same package (package)
Without public, private, protected modify the properties of the other classes in the same package visible
You can try the package is modified to different package, see also can direct call?
  • Related