STARUMLAND NETBEANSCeng 344
Object Oriented Languages
2012 -2013 FALL 1
STARUMLPREPARING FOR CLASS DIAGRAM
2012 -2013 FALL 6
STARUMLDEFINING ATTRIBUTE
2012 -2013 FALL 8
STARUMLDEFINING OPERATION
2012 -2013 FALL 9
NETBEANS
� Creating a New Java Class
� Files>New Project
2012 -2013 FALL 11
NETBEANSCREATING A NEW CLASS
2012 -2013 FALL 14
YOUR TURN
� Now create a CAR class in UML and Java
� In your class your attributes will be brand, model, year, color, plate
� In your class, you will set these attributes with a set method
� Like setBrand(attribute)
� In your class, you will get the values with get methods
� Like getColor()
� Do not forget to create your main class for setting and getting values
2012 -2013 FALL 17
� Students may leave the lab after showing their work
2012 -2013 FALL 18