May someone help me with overloading, i just started C++ and im programming a rectangle class :
how can i do something like this :
Rectangle.width = 10
(like u can do in Vb 6.0)
Code:
class clsRectangle {
public:
int m_Height;
int m_Width;
clsRectangle operator= (clsRectangle);
int area (void) {return (m_Height*m_Width);}
int Perrimeter (void) {return ( 2*m_Height + 2*m_Width);}
};
clsRectangle::operator= (clsRectangle) {
}
how can i do something like this :
Rectangle.width = 10
(like u can do in Vb 6.0)