← Quiz: UML Class Diagrams: all 10 questions
Quiz: UML Class Diagrams · Question 5 of 10
A dashed line with a hollow triangle from UpiPayment to «interface» Payment becomes which Java code?
A dashed line with a hollow triangle from UpiPayment to «interface» Payment becomes which Java code?
- A.
class UpiPayment extends Payment - B.
class UpiPayment implements Payment - C.
class Payment implements UpiPayment - D.A field of type Payment inside UpiPayment
Answer & explanation
Correct answer: class UpiPayment implements Payment
A dashed line with a hollow triangle is realization: implementing an interface.
Can you get the rest right without peeking?
Take the timed Quiz: UML Class Diagrams quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →