GenericB-6ren">
gpt4 book ai didi

C++ 相当于 "super"?

转载 作者:IT老高 更新时间:2023-10-28 22:10:13 26 4
gpt4 key购买 nike

在 Java 中,不使用作用域运算符,而是使用 super:

C++ -> GenericBase::SomeVirtualFunction();
Java -> super.someVirtualMethod();

C++ 中是否有类似的东西,或者由于多重继承,这在 C++ 中没有意义?

谢谢

最佳答案

关于C++ 相当于 "super"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4424216/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com