static void Person_2() { IPerson person = new Claire(); APersonDecorator decorator = new EyeLiner(person); Console.WriteLine(decorator.Name()); Console.WriteLine("Age: " + decorator.Age()); }
static void Person_4() { IPerson person = new Rach(); person = new Kajol(person); person = new Lipstick(person); person = new EyeLiner(person); Console.WriteLine(person.Name()); Console.WriteLine("Age: " + person.Age()); }