Answer the question
In order to leave comments, you need to log in
A class with static members inside a parent class in Java. How to determine?
Umm, I forgot a little, how could this be done?
class public ParentClass{
class public ChildClass{
//Вот здесь хочу статические члены, чтобы не создавая объект их вызывать. Как?
}
}
Answer the question
In order to leave comments, you need to log in
In short, I understand. You need the nested class itself to be static and the variables inside the static methods to be static too...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question