QAProgramming › The relationship created with composition is called a(n) ____ relationship.
Q

The relationship created with composition is called a(n) ____ relationship.

a. is-a

b. has-a

c. with-a

d. child

A

Answer: B. HAS-A relationship.

The HAS-A relationship refers to a composition relationship that makes provision for the use of random variables to draw deductive reference to other objects.

It is a composition relationship that has proved to be invaluable when reusing codes. It creates a way to draw a correlational line between variables, and to show how they fit in the composite relationship.

Generally, HAS-A relationships are used to create generalized inferences between variables by emphasizing on the connection between them.

7 months ago
88 Views