Skip to content

Commit

Permalink
Fix an error in C++.md
Browse files Browse the repository at this point in the history
The virtual function table pointer exists in each object (usually for efficiency, it will be placed at the start address of the object), it points to the address of the virtual function table of the class where the object is located; in multiple inheritance situation, there will be multiple virtual function table pointers point to virtual function tables corresponding to different base classes.
  • Loading branch information
lioncruise authored Mar 17, 2018
1 parent 06a698d commit 5b75096
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 编程语言C++.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ C/C++的内容又多又杂,常常看到有人罗列相关书单,觉得毫无
3. 对象存储空间?
- 非静态成员的数据类型大小之和。

- 编译器加入的额外成员变量(如指向虚函数的指针)。
   - 编译器加入的额外成员变量(如指向虚函数表的指针)。

- 为了边缘对齐优化加入的panding。

Expand Down

0 comments on commit 5b75096

Please sign in to comment.