Module 9 Flashcards

(11 cards)

1
Q

The practice of using existing code to develop new applications.

It is a fundamental principle of software engineering that allows developers to save time and effort by leveraging existing code libraries, frameworks, and modules.

A

Code reuse

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

A mechanism that allows a class to inherit properties and methods from another class.

A

Inheritance

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

A mechanism that allows a class to contain instances of other classes as members.

A

Composition

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

A mechanism that allows a class to delegate responsibility for a task to another class. In this approach, a class delegates the implementation of a method to another object that is responsible for providing the implementation. This enables the class to reuse the functionality of the delegate object without having to implement it itself.

A

Delegation

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

A mechanism that allows a class to keep responsibility for a task to another class.

A

Delegation

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

A term used to describe the relationship between two classes, where one class is a specialized version of the other.

A

“is-a” relationship/Inheritance

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

A type of relationship between classes, which is used to define the ownership of one object by another object.

A

Has-A-Relation

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

A strong form of the Has-A-Relation, where one class owns the other class and is responsible for its lifetime.
If the owner class is destroyed, then the owned class is also destroyed.
Represents a “whole-part” or “containment” relationship between two classes, where one class is composed of one or more objects of another class.

A

Composition

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

is a type of relationship between classes, which is used to define the ownership of one object by another object.

This relationship is also known as composition or aggregation.

A

Has-A-Relation

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

A type of relationship between two classes where one class, the aggregate class, has a reference to the other class, the part class.

A

Aggregation

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

A mechanism that allows a class to delegate responsibility for a task to another class.

A

Delegation

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