- 在类中,如果你没有在成员前面写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.
本文标题:类
本文链接:https://www.haomeiwen.com/subject/kdvymxtx.html
网友评论