1/11
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Code reuse
is the practice of using existing code to develop new applications
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
Inheritance
is a mechanism that allows a class to inherit properties and methods from another class
Composition
is a mechanism that allows a class to contain instances of other classes as members
Delegation
is a mechanism that allows a class to delegate responsibility for a task to another class
"is-a" relationship
term used to describe the relationship between two classes
"is-a" relationship
is important in Java because it allows developers to reuse code and create more efficient and flexible programs
Has-A-Relation
is a type of relationship between classes, which is used to define the ownership of one object by another object
Composition
is a strong form of the Has-ARelation
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
Delegation
is a mechanism that allows a class to delegate responsibility for a task to another class
Delegation
is useful when creating classes that have a single responsibility and collaborate with other classes to achieve that responsibility