主页
C++
C++ 类方法
demo_object_method_param
运行 ❯
×
更改方向
保存代码
更改主题
#include
using namespace std; class Car { public: int speed(int maxSpeed); }; int Car::speed(int maxSpeed) { return maxSpeed; } int main() { Car myObj; cout << myObj.speed(200); return 0; }
200