Skip to content

Commit 5b75096

Browse files
authored
Fix an error in C++.md
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.
1 parent 06a698d commit 5b75096

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

编程语言C++.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ C/C++的内容又多又杂,常常看到有人罗列相关书单,觉得毫无
245245
3. 对象存储空间?
246246
- 非静态成员的数据类型大小之和。
247247

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

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

0 commit comments

Comments
 (0)