Module 10 - Code Reuse, Making Changes in Class Hierarchy

0.0(0)
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/11

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

12 Terms

1
New cards

Code reuse

is the practice of using existing code to develop new applications

2
New cards

Code reuse

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

3
New cards

Inheritance

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

4
New cards

Composition

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

5
New cards

Delegation

is a mechanism that allows a class to delegate responsibility for a task to another class

6
New cards

"is-a" relationship

term used to describe the relationship between two classes

7
New cards

"is-a" relationship

is important in Java because it allows developers to reuse code and create more efficient and flexible programs

8
New cards

Has-A-Relation

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

9
New cards

Composition

is a strong form of the Has-ARelation

10
New cards

Aggregation

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

11
New cards

Delegation

is a mechanism that allows a class to delegate responsibility for a task to another class

12
New cards

Delegation

is useful when creating classes that have a single responsibility and collaborate with other classes to achieve that responsibility