invalid object state ? (C++)

Joined
Jan 10, 2007
Messages
43,898
Location
In The Machine
Imagine that we have a class with a properties like this:

class MyClass
{
public:
** float GetWidth() const;
** void SetWidht(float width);

private:
** float m_widht;
};

void MyClass::SetWidth(float width)
{
** // preconditions
** if (width
 
Back
Top