CPlusPlusThings/english/basic_content/const/class_const/overload_example/apple.cpp
2020-07-18 17:09:29 +08:00

14 lines
215 B
C++

class Apple
{
private:
int people[100];
public:
Apple(int i);
static const int apple_number;
void take(int num) const;
int add(int num);
int add(int num) const;
int getCount() const;
};