Реализации на С++
Bridge
Общая реализация на языке С++
# include <iostream>
# include <memory>
using namespace std;
int main()
{
shared_ptr<Implementor> implementor = make_shared<ConcreteImplementor>();
shared_ptr<Abstraction> abstraction = make_shared<Entity>(implementor);
abstraction->operation();
}
Last updated
Was this helpful?