cv_gordon

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: :: :: 管理 ::

2020年2月13日

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

摘要: 1. Object Based(基于对象) vs. Object Oriented(面向对象) Object Based: 面对的是单一class的设计; Object Oriented:面对的是多重classes的设计,class 和 class 之间的关系。 classes 的两个经典分类: c 阅读全文
posted @ 2020-02-13 13:17 cv_gordon 阅读(978) 评论(0) 推荐(1) 编辑