No and it will never work because you have made all the properties static, so they apply to every instance of
child
. Remove the static keyword from all those properties, and then you can create any number of objects like:
child Robert = new child();
Robert.name = "Robert";
child Mary = new child();
Mary.name = "Mary";
See
Lesson: Classes and Objects - Learning the Java Language)[
^].