CPlusPlusThings/basic_content/const/class_const/first_example/apple.cpp
Light-City 8edbbbc5a2 update
2019-11-05 16:56:07 +08:00

14 lines
208 B
C++

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