读书笔记

xiaoxiao2021-02-28  127

第一章

1. data member直接内含在每一个class object之中, 就像 C struct的情况一样。而member functins 虽然含在class的声明之内, 却不出现在object之中。 每一个non-inline member function只会诞生一个函数实体。而Inline function 则会在其每一个使用者身上产生一个函数实体。

2.在C++中,有两种class data member: static 和 non-static,  以及三种class member functions: static, nonstatic和virtual。 

只有非静态数据成员在每个对象都有一份, 虚函数则有个虚表, 其他在内存中只有一份数据,被每个对象共享。

3.

第二章

1. 

2.

第二章

2.

3.

转载请注明原文地址: https://www.6miu.com/read-21350.html

最新回复(0)