📄 slide042.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="blendTrans(Duration=2)" http-equiv="Page-Enter">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" src="./config.js"></script>
<script language="JavaScript" src="./pageFormat.js"></script>
<script><!-- // Set title on page
title()
//--></script>
</head>
<body>
<div onclick="document.location='slide043.html'">
<h2><font color="#009999">Pattern TEMPLATE METHOD</font></h2>
<font size="+1">
<hr color="#00ffff" size="6">
<h3><font color="#009999">Solution</font></h3>
<table cellpadding='5'>
<tr>
<td valign='top'><font size='+1'>
<ol>
<li>Define the algorithm in the base class</li>
<li>The algorithm calls the primitive operations in order</li>
<li>Define the primitive operations as virtual functions in base class,
with appropriate default behavior, or leave undefined</li>
<li>Each derived class defines the primitives, but not the algorithm
</li>
</ol>
</font>
</td>
<td>
<script><!--
image( "un05.png" )
//--></script>
</td>
</tr>
</table>
</font>
<hr>
<center><small>
<a href='slide041.html'>prev</a>
|<a href='slide001.html'>top</a>
|<a href='slide043.html'>next</a>
</small></center>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -