Interface conformance. A decorator object's interface must conform to the interface of the component it decorates. Concrete Decorator classes must therefore inherit from a common class (at least in C++)
Interface conformance. A decorator object's interface must conform to the interface of the component it decorates. Concrete Decorator classes must therefore inherit from a common class (at least in C++)
Giao diện phù hợp. Một đối tượng giao diện trang trí của phải phù hợp với giao diện của các thành phần trang trí nó. Decorator lớp bê tông phải do kế thừa từ một lớp học thông thường (ít nhất là trong C ++)