55
1
using System;
2
3
public interface ICommand
4
{
5
void Execute();
6
}
7
8
public class Button
9
{
10
ICommand command;
11
12
public Button(ICommand command)
13
{
14
this.command = command;
15
}
16
17
public void Click()
18
{
19
command.Execute();
20
}
21
}
22
23
public class CustomerService
24
{
Cached Result
result: 0.428571428571429