You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
444 B
22 lines
444 B
using Bridge.Bridges;
|
|
using Bridge.Implementations;
|
|
|
|
namespace Bridge
|
|
{
|
|
internal class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
Client client = new Client();
|
|
|
|
Abstraction abstraction;
|
|
abstraction = new Abstraction(new ConcreteImplementationA());
|
|
client.ClientCode(abstraction);
|
|
|
|
Console.WriteLine();
|
|
|
|
abstraction = new ExtendedAbstraction(new ConcreteImplementationB());
|
|
client.ClientCode(abstraction);
|
|
}
|
|
}
|
|
} |