Complete the code to define a class with a name in UML notation.
class [1] { }
The class name goes inside the class box in UML diagrams.
Complete the code to add an attribute to a UML class with visibility.
class Person { [1] name: String }
In UML, '+' means the attribute is public (visible outside the class).
Fix the error in the UML method declaration by choosing the correct return type symbol.
class Person { + getAge() : [1] }
The method getAge() should return an integer representing age.
Fill both blanks to show correct UML notation for a private attribute and a public method.
class Car { [1] speed: int [2] accelerate() }
Private attributes use '-', public methods use '+'.
Fill all three blanks to complete the UML class with an attribute, method, and return type.
class Book { [1] title: String [2] getTitle() : [3] }
The attribute 'title' is private ('-'), the method 'getTitle()' is public ('+'), and returns a String.
