slide098.html

来自「《Big C++ 》Third Edition电子书和代码全集-Part1」· HTML 代码 · 共 65 行

HTML
65
字号
<!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='slide099.html'">
<h2><font color="#009999">More Patterns (cont.)</font></h2>
<font size="+1">

<table border='1' cellpadding='4'>
	<tr bgcolor='#00ffff'>
		<th>Pattern Name</th>
		<th>Description</th>
		<th>Example</th>
	</tr>
	<tr>
		<th>Proxy</th>
		<td>A service needs to be made more versatile without affecting the service
			provider or client</td>
		<td>A proxy class sends client requests to a server object on a different
			computer</td>
	</tr>
	<tr>
		<th>Singleton</th>
		<td>All clients need access to a single shared object of a class</td>
		<td>A random number singleton gives all clients access to the same
			generator</td>
	</tr>
	<tr>
		<th>State</th>
		<td>A separate object is used for each state. State-dependent code is
			distributed over the various state classes</td>
		<td>An image editor has different drawing states. Each state is handled by
			a separate tool object</td>
	</tr>
	<tr>
		<th>Visitor</th>
		<td>A structure with a fixed set of element classes needs an extensible set
			of operations</td>
		<td>An XML visitor visits a tree of XML elements, applying arbitrary
			operations to each node</td>
	</tr>
</table>

</font>

<hr>
<center><small>
	<a href='slide097.html'>prev</a>
	|<a href='slide001.html'>top</a>
	|<a href='slide099.html'>next</a>
</small></center>
</div>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?