Glossary (a-f) Flashcards

1
Q

abstract coupling

A

A reference to a type of object, as opposed to a concrete object.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

destructor

A

In C++, an operation that is automatically invoked to finalize an object about to be deleted.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

framework

A

A set of cooperating classes that makes up a reusable design for a specific class of software. Frameworks provide ARCHITECTURAL GUIDANCE by partitioning the design into abstract classes and defining their responsibilities and collaborations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

class operation

A

An operation targeted to a class, not an individual object.

In C++, class operations are are called static member functions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

black-box reuse

A

A style of reuse based on object composition.

Composed objects reveal no internal details to each other.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

constructor

A

An operation that is automatically invoked to initialize new instances.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

concrete class

A

A class having no abstract operations. It can be instantiated.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

design pattern

A

A design pattern SYSTEMATICALLY names, motivates, and explains a GENERAL design THAT ADDRESSES a recurring design problem in object-oriented systems.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

acquaintance relationship

A

An object knows of another object. Sometimes called association or the “using” relationship.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

class

A

A class defines an object’s interface, representation and implementation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

abstract operation

A

An operation that declares a signature but doesn’t implement it.

An abstract operation corresponds to a pure virtual function.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

abstract class

A

A class whose primary purpose is to define an interface.

An abstract class defers some or all of its implementation to subclasses. It cannot be instantiated.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

encapsulation

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

aggregation relationship

A

The relationship of an aggregate object to its parts.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

class diagram

A

A diagram that depicts classes, their internal structure and operations, and the static relationships between them.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

aggregate object

A

An object composed of subobjects.

The subobjects are called the aggregate’s parts, and the aggregate is responsible for them.

17
Q

delegation

A

An implementation mechanism in which an object forwards a request to another object.

The delegate carries out the request on behalf of the original object.

18
Q

dynamic binding

A

The run-time association of a request TO AN OBJECT and one of its operations.

Only virtual functions are dynamically bound.

19
Q

coupling

A

The degree to which software components depend on each other.

20
Q

What are the three Golden Rules of OOP?

A
  1. Program to an interface, not an implementation.
  2. Favor object composition over class inheritance.
  3. Encapsulate the concept that varies.