public class ClassMain {
public static void main(String[] args) {
new ClassMain().childGrow();
}
public void childGrow(){
Person p;
p=Person.Student;
p.grow();
}
}
import java.lang.reflect.Constructor;
public enum Person {
Student("aa");
private String name;
private Person(String name){
this.name = name;