Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

Decorator design pattern in modern C++

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 1.39 sec, absolute running time: 0.11 sec, cpu time: 0.04 sec, memory peak: 3 Mb, absolute service time: 1,51 sec 
edit mode |  history
 ======>> Experiment 1 <<===========
 => [ColorDecorator] Draw object with color blue
 => Draw square
 DESCRIPTION = square ; color = yellow

 ======>> Experiment 2 <<===========
 =>  [PositionDecorator] Draw object at x = 100 ; y = 20
 => [ColorDecorator] Draw object with color blue
 => Draw tringle
 DESCRIPTION = triangle ; color = white ; position x  = 100 , y = 20
 [INFO] observed shape = triangle

    
                
λ
.NET NoSQL database for rapid development