Why are private fields on an enum type visible to the containing class?

前端 未结 3 1157
清酒与你
清酒与你 2021-02-20 12:44
public class Parent {

    public enum ChildType {

        FIRST_CHILD(\"I am the first.\"),
        SECOND_CHILD(\"I am the second.\");

        private String myChild         


        
3条回答
提交回复
热议问题