CS FundamentalsModerateService-company placement · UML

In a UML component diagram, PaymentService shows a small circle on a stick labelled IPayment, and Checkout shows a half-circle cup labelled IPayment. What do they mean?

  1. A. PaymentService needs IPayment; Checkout provides it
  2. B. Both components implement IPayment independently
  3. C. PaymentService provides IPayment; Checkout requires it
  4. D. IPayment is a port that both components publish to a message bus

Correct answer: C. PaymentService provides IPayment; Checkout requires it

The ball (lollipop) marks a provided interface and the socket a required one; drawn together they form an assembly connector meaning Checkout uses the IPayment that PaymentService provides.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic