长方形类案例
#include <iostream>
using namespace std;
class Rectangl{
public:
void Init(int X, int Y, int Width, int Height)
{
m_x = X;
m_y = Y;
m_width = Width;
m_height = Height;
}
void SetWidth(int Width)
{
m_width = Width;
}
void SetHeight(int Height)
{
m_height = Height