Content deleted Content added
No edit summary Tags: Manual revert Reverted Visual edit Mobile edit Mobile web edit |
No edit summary Tags: Reverted Visual edit Mobile edit Mobile web edit |
||
Line 47:
[[File:Cpp template method pattern UML.svg|Cpp template method pattern UML.svg]]
<syntaxhighlight lang="c++" line="1">#include <iostream>
#include <memory>
Line 83 ⟶ 82:
std::unique_ptr<View> myview = std::make_unique<MyView>();
myview->display();
}</syntaxhighlight>▼
▲</syntaxhighlight>
The program output is
<syntaxhighlight lang="
View::
MyView::
View::
</syntaxhighlight>
|