🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: UML Class Diagrams: all 10 questions

Quiz: UML Class Diagrams · Question 1 of 10

In a UML class box, what does - balance : double mean?

In a UML class box, what does - balance : double mean?

  1. A.A public method named balance returning double
  2. B.A private attribute named balance of type double
  3. C.A protected static field
  4. D.A balance that is subtracted
Answer & explanation

Correct answer: A private attribute named balance of type double

- is private, and UML writes the type after the name.

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 →