Skip to content

Rodyti po #443819: Модификаторы доступа Java

ROM
UJIN, public class Person {

public static int a;

public Person() {
]
}

А юзать в другом классе можна так Person.a;
Или сделать геттеры и сеттеры и юзать ими.
Show in the topic