Computer Science, asked by cpx35519, 1 year ago

Consider the following sentence: “100 paisa is one rupee”. From an analysis of the sentence, identify the relation between the two classes Paisa and Rupee that can be inferred from the sentence.
a. Inheritance
b. Association
c. Aggregation
d. Composition

Answers

Answered by abhishekmishra0106
0

Answer:

composition is the right answer.

Answered by qwcricket10
0

Option (d) Composition is the relationships that exist in the given sentence.

  • One of the basic concepts that are used in object-oriented programming is composition.
  • The compositions show a part-whole relationship.
  • There will be more than one class, and the part class can not exist without the parent class.
  • Here in the sentence rupee is one class and paisa is another class, which do not exist without the rupee class.
Similar questions