Observer is a behavioral pattern. Decorator is a structural pattern . Using observer implements event handling (it binds some method calls of different classes with each other).
Observer is a behavioral pattern. Decorator is a structural pattern . Using observer implements event handling (it binds some method calls of different classes with each other).