Basic class diagram example

Quick questions

Q1 In UML a class is represented by:
A cloud
An ellipse
A rectangle
A Klein bottle

Q2 Which of these might be a good name for a class?
Customer
Customers
customer
customers

Q3 An attribute with name "name" and type String is shown as:
name, type=String
String name
name : String
name (String)

Q4 Suppose we have an association between a class Wheel and a class Bicycle with the obvious interpretation. The multiplicity at the Wheel end of the association should be:
0
1
2
0..*

Requests

Any questions, things you'd like me to go over in a lecture, comments? (If you want me to have your name and/or email address, include it, otherwise I won't.)


This page is maintained by Perdita Stevens (perdita@inf.ed.ac.uk)


Home : Teaching : Courses : Seoc : 2014_2015 

Informatics Forum, 10 Crichton Street, Edinburgh, EH8 9AB, Scotland, UK
Tel: +44 131 651 5661, Fax: +44 131 651 1426, E-mail: school-office@inf.ed.ac.uk
Please contact our webadmin with any comments or corrections. Logging and Cookies
Unless explicitly stated otherwise, all material is copyright © The University of Edinburgh