IProperty* width = new WidthProperty(10);
IProperty* newWidth = nullptr;
class CopyingDecorator: public IProperty
{
private:
IProperty *parent;
IProperty *child;
public:
void setValue(int value)
{
this->parent->setValue(value);
this->child->setValue(value);
}
int getValue()
{
return this->parent->getValue();
}
}