摘要:
1. static 其中,static 成员函数没有 this 指针, non-static 成员函数有 this 指针。因此,static 成员函数只能访问 static 数据成员。 static 成员变量在类内声明,在类外定义。 static 的调用方式有2种。1)通过对象调用;2)直接通过类名 阅读全文
posted @ 2020-02-13 22:48
cv_gordon
阅读(210)
评论(0)
推荐(0)

浙公网安备 33010602011771号