简体   繁体   English

您如何决定在 C++ 和/或 python 中将成员 function 表示为 ZA81259CEF48E959C2974EDF1?

[英]How do you decide on denoting a member function in C++ and/or python as static?

How do you decide on denoting a member function in C++ and/or python as static?您如何决定在 C++ 和/或 python 中将成员 function 表示为 ZA81259CEF48E959C2974EDF1?

When your member function doesn't use any of the member variables, and doesn't call any other nonstatic member functions (of the same class), it can be static itself.当您的成员 function 不使用任何成员变量,并且不调用任何其他非静态成员函数(同一类)时,它可以是 static 本身。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM