H
H
Hello America2014-06-09 21:04:07
Java
Hello America, 2014-06-09 21:04:07

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

1 answer(s)
H
Hello America, 2014-06-09
@websofter

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 question

Ask a Question

731 491 924 answers to any question