C++ super::
时间: 2023-08-15 20:08:07 浏览: 57
在C++中,没有直接使用"super::"的语法来调用父类的成员函数。引用\[1\]中提到,在C++中要使用父类的成员,可以直接使用"父类名::成员"的方式来调用,或者使用using声明来简化调用。在引用\[2\]中的示例中,使用了Super::BeginPlay()和Super::Tick(DeltaTime)来调用父类的虚函数。而引用\[3\]中的示例展示了一种特殊情况,使用了__super::来调用基类的方法,但这是Visual C++的扩展,不是标准C++语法。所以在C++中,通常不会使用"super::"来调用父类的成员函数。
#### 引用[.reference_title]
- *1* *3* [C++ __super](https://blog.csdn.net/AQ14AQ1/article/details/51447745)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [UE4 C++ Super类型](https://blog.csdn.net/weixin_43575837/article/details/103270755)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)