- 在类中,如果你没有在成员前面写private或者public,那么默认的权限修饰符是private。
By default, all members of a class are private.
- A class defaults its members to private. A struct defaults its members to public.
- 在类中,如果你没有在成员前面写private或者public,那么默认的权限修饰符是private。
By default, all members of a class are private.
- A class defaults its members to private. A struct defaults its members to public.