Skip to content

修复简单typo #354

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ericzeng95
Copy link

sizeof 章节 关于具有虚函数的类的继承的示范代码有误.

class A1 {
virtual void fun() {}
};
class C1 : public A {};

class A {
public:
char a;
int b;
};

此处的 A 不是具有虚函数的类,C1 正确是示范应是继承 A1

@FlyDragonMan
Copy link

FlyDragonMan commented May 25, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants