Please tell me whether you can create your own namespace and use it to specify the access modifier. For example, in ActionScript you can create a mySpace namepsace = "EN-us.domain.space";
and then use it as an access modifier to methods or fields of a class:
class A
{
use namespace mySpace;
mySpace var a:int
mySpace function f():int {return a;}
{
Is there something similar in Java?
Thank you.
In C++ there is an approximate analogue of the destroyer encapsulation - friend. But it is also not particularly favor. - Elna.Volkman92 commented on July 9th 19 at 13:27