⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chapa-0.htm

📁 设计模式英文版 作者:Erich Gamma、Richard Helm、Ralph Johnson和John Vlissides 四人帮的书。 学设计模式的必读的书籍!经典中的经典
💻 HTM
📖 第 1 页 / 共 2 页
字号:
<HTML><HEAD><TITLE>Glossary</TITLE></HEAD>

<BODY
	BGCOLOR	= #FFFFFF
	TEXT	= #000000
>

<A NAME="top"></A>

<A NAME="chapter_glossary"></A>

<TABLE WIDTH=100% CELLPADDING=0 CELLSPACING=0>

<A NAME="auto1000"></A>
<TR>
<TD WIDTH=25><IMG SRC="gifsb/clear.gif" WIDTH=25 HEIGHT=1></TD>
<TD></TD>
</TR>

<A NAME="auto1001"></A>
<TR><TD><A NAME="A"></A></TD></TR>

<A NAME="abstractclass"></A>
<TR><TD COLSPAN=2><B>abstract class</B></TD></TR>
<A NAME="auto1002"></A>
<TR><TD></TD><TD>A class whose primary purpose is to define an
interface.  An abstract class defers some or all of its implementation
to subclasses.  An abstract class cannot be instantiated.</TD></TR>

<A NAME="auto1003"></A>
<TR><TD>&nbsp;</TD></TR>

<A NAME="abstractcoupling"></A>
<TR><TD COLSPAN=2><B>abstract coupling</B></TD></TR>
<A NAME="auto1004"></A>
<TR><TD></TD><TD>Given a class <I>A</I> that maintains a reference
to an abstract class <I>B</I>,  class <I>A</I> is said to be
<EM>abstractly coupled</EM> to <I>B</I>.  We call this abstract
coupling because <I>A</I> refers to a <EM>type</EM> of object, not
a concrete object.</TD></TR>

<A NAME="auto1005"></A>
<TR><TD>&nbsp;</TD></TR>

<A NAME="abstractoperation"></A>
<TR><TD COLSPAN=2><B>abstract operation</B></TD></TR>
<A NAME="auto1006"></A>
<TR><TD></TD><TD>An operation that declares a signature but doesn't
implement it.  In C++, an abstract operation corresponds to a
<B>pure virtual member function</B>.</TD></TR>

<A NAME="auto1007"></A>
<TR><TD>&nbsp;</TD></TR>

<A NAME="acquaintancerelationship"></A>
<TR><TD COLSPAN=2><B>acquaintance relationship</B></TD></TR>
<A NAME="auto1008"></A>
<TR><TD></TD><TD>A class that refers to another class has an
<EM>acquaintance</EM> with that class.</TD></TR>

<A NAME="auto1009"></A>
<TR><TD>&nbsp;</TD></TR>

<A NAME="aggregateobject"></A>
<TR><TD COLSPAN=2><B>aggregate object</B></TD></TR>
<A NAME="auto1010"></A>
<TR><TD></TD><TD>An object that's composed of subobjects.  The
subobjects are called the aggregate's <B>parts</B>, and the aggregate
is responsible for them.</TD></TR>

<A NAME="auto1011"></A>
<TR><TD>&nbsp;</TD></TR>

<A NAME="aggregation"></A>
<A NAME="aggregationrelationship"></A>
<TR><TD COLSPAN=2><B>aggregation relationship</B></TD></TR>
<A NAME="auto1012"></A>
<TR><TD></TD><TD>The relationship of an aggregate object to its
parts.  A class defines this relationship for its instances (e.g.,
aggregate objects).</TD></TR>

<A NAME="auto1013"></A>
<TR><TD>
<A NAME="B">&nbsp;</A>
</TD></TR>

<A NAME="black-boxreuse"></A>
<TR><TD COLSPAN=2><B>black-box reuse</B></TD></TR>
<A NAME="auto1014"></A>
<TR><TD></TD><TD>A style of reuse based on object composition.
Composed objects reveal no internal details to each other and are
thus analogous to "black boxes."</TD></TR>

<A NAME="auto1015"></A>
<TR><TD>
<A NAME="C">&nbsp;</A>
</TD></TR>

<A NAME="class"></A>
<TR><TD COLSPAN=2><B>class</B></TD></TR>
<A NAME="auto1016"></A>
<TR><TD></TD><TD>A class defines an object's interface and
implementation. It specifies the object's internal representation
and defines the operations the object can perform.</TD></TR>

<A NAME="auto1017"></A>
<TR><TD>&nbsp;</TD></TR>

<A NAME="classdiagram"></A>
<TR><TD COLSPAN=2><B>class diagram</B></TD></TR>
<A NAME="auto1018"></A>
<TR><TD></TD><TD>A diagram that depicts classes, their internal structure and
operations, and the static relationships between them.</TD></TR>

<A NAME="auto1019"></A>
<TR><TD>&nbsp;</TD></TR>

<A NAME="classoperation"></A>
<TR><TD COLSPAN=2><B>class operation</B></TD></TR>
<A NAME="auto1020"></A>
<TR><TD></TD><TD>An operation targeted to a class and not to an
individual object. In C++, class operations are are called <B>static
member functions</B>.</TD></TR>

<A NAME="auto1021"></A>
<TR><TD>&nbsp;</TD></TR>

<A NAME="concreteclass"></A>
<TR><TD COLSPAN=2><B>concrete class</B></TD></TR>
<A NAME="auto1022"></A>
<TR><TD></TD><TD>A class having no abstract operations. It can be
instantiated.</TD></TR>

<A NAME="auto1023"></A>
<TR><TD>&nbsp;</TD></TR>

<A NAME="constructor"></A>
<TR><TD COLSPAN=2><B>constructor</B></TD></TR>
<A NAME="auto1024"></A>
<TR><TD></TD><TD>In C++, an operation that is automatically invoked
to initialize new instances.</TD></TR>

<A NAME="auto1025"></A>
<TR><TD>&nbsp;</TD></TR>

<A NAME="coupling"></A>
<TR><TD COLSPAN=2><B>coupling</B></TD></TR>
<A NAME="auto1026"></A>
<TR><TD></TD><TD>The degree to which software components depend on
each other.</TD></TR>

<A NAME="auto1027"></A>
<TR><TD>
<A NAME="D">&nbsp;</A>
</TD></TR>

<A NAME="delegation"></A>
<TR><TD COLSPAN=2><B>delegation</B></TD></TR>
<A NAME="auto1028"></A>
<TR><TD></TD><TD>An implementation mechanism in which an object forwards or <EM>delegates</EM> a request to another object.  The delegate carries out the
request on behalf of the original object.</TD></TR>

<A NAME="auto1029"></A>
<TR><TD>&nbsp;</TD></TR>

<A NAME="designpattern"></A>
<TR><TD COLSPAN=2><B>design pattern</B></TD></TR>
<A NAME="auto1030"></A>
<TR><TD></TD><TD>A design pattern systematically names, motivates,
and explains a general design that addresses a recurring design
problem in object-oriented systems.  It describes the problem, the
solution, when to apply the solution, and its consequences.  It
also gives implementation hints and examples.  The solution is a
general arrangement of objects and classes that solve the problem.
The solution is customized and implemented to solve the problem in
a particular context.</TD></TR>

<A NAME="auto1031"></A>
<TR><TD>&nbsp;</TD></TR>

<A NAME="destructor"></A>
<TR><TD COLSPAN=2><B>destructor</B></TD></TR>
<A NAME="auto1032"></A>
<TR><TD></TD><TD>In C++, an operation that is automatically invoked to finalize an
object that is about to be deleted.</TD></TR>

<A NAME="auto1033"></A>
<TR><TD>&nbsp;</TD></TR>

<A NAME="dynamicbinding"></A>
<TR><TD COLSPAN=2><B>dynamic binding</B></TD></TR>
<A NAME="auto1034"></A>
<TR><TD></TD><TD>The run-time association of a request to an object
and one of its operations. In C++, only virtual functions are
dynamically bound.</TD></TR>

<A NAME="auto1035"></A>
<TR><TD>
<A NAME="E">&nbsp;</A>
</TD></TR>

<A NAME="encapsulation"></A>
<TR><TD COLSPAN=2><B>encapsulation</B></TD></TR>
<A NAME="auto1036"></A>
<TR><TD></TD><TD>The result of hiding a representation and
implementation in an object.  The representation is not visible
and cannot be accessed directly from outside the object. Operations
are the only way to access and modify an object's representation.</TD></TR>

<A NAME="auto1037"></A>
<TR><TD>
<A NAME="F">&nbsp;</A>
</TD></TR>

<A NAME="framework"></A>
<TR><TD COLSPAN=2><B>framework</B></TD></TR>
<A NAME="auto1038"></A>
<TR><TD></TD><TD>A set of cooperating classes that makes up a
reusable design for a specific class of software. A framework
provides architectural guidance by partitioning the design into
abstract classes and defining their responsibilities and collaborations.
A developer customizes the framework to a particular application
by subclassing and composing instances of framework classes.</TD></TR>

<A NAME="auto1039"></A>
<TR><TD>&nbsp;</TD></TR>

<A NAME="friendclass"></A>
<TR><TD COLSPAN=2><B>friend class</B></TD></TR>
<A NAME="auto1040"></A>
<TR><TD></TD><TD>In C++, a class that has the same access rights
to the operations and data of a class as that class itself.</TD></TR>

<A NAME="auto1041"></A>
<TR><TD>
<A NAME="I">&nbsp;</A>
</TD></TR>

<A NAME="inheritance"></A>
<TR><TD COLSPAN=2><B>inheritance</B></TD></TR>
<A NAME="auto1042"></A>
<TR><TD></TD><TD>A relationship that defines one entity in terms
of another.  <B>Class inheritance</B> defines a new class in terms
of one or more parent classes.  The new class inherits its interface
and implementation from its parents.  The new class is called a
<B>subclass</B> or (in C++) a <B>derived class</B>.  Class inheritance
combines <B>interface inheritance</B> and <B>implementation
inheritance</B>.  Interface inheritance defines a new interface in
terms of one or more existing interfaces.  Implementation inheritance
defines a new implementation in terms of one or more existing
implementations.</TD></TR>

<A NAME="auto1043"></A>
<TR><TD>&nbsp;</TD></TR>

<A NAME="instance"></A>
<A NAME="datamember"></A>
<A NAME="instancevariable"></A>
<TR><TD COLSPAN=2><B>instance variable</B></TD></TR>
<A NAME="auto1044"></A>
<TR><TD></TD><TD>A piece of data that defines part of an object's
representation.  C++ uses the term <B>data member</B>.</TD></TR>

⌨️ 快捷键说明

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