int a;
Class n1;
n1.func1(a);
n1.func2(a);
#include <iostream>
class rabbit
{
public:
rabbit(int value)
{
m_value = value;
}
void SetValue(int value)
{
m_value = value;
}
int GetValue()
{
return m_value;
}
private:
int m_value;
};
int main()
{
rabbit mrRabbit(10);
std::cout << mrRabbit.GetValue();
mrRabbit.SetValue(100);
std::cout << mrRabbit.GetValue();
return 0;
}