The UML (Unified Modeling Language) provides a visual representation of the Computer class.
// Constructor (optional, depending on the language)
Computer():
make = ""
model = ""
memory = 0
// Method to set the make of the computer
setMake(m: String):
make = m
// Method to set the model of the computer
setModel(m: String):
model = m
// Method to set the amount of memory in the computer
setMemory(m: int):
memory = m
// Method to display all values for each field
displayInfo():
print("Make: ", make)
print("Model: ", model)
print("Memory: ", memory)