18
STARUML AND NETBEANS Ceng 344 Object Oriented Languages 2012-2013 FALL 1

Ceng344 Object Oriented Languagesceng344.cankaya.edu.tr/uploads/files/file/Labs/Lab1_2012_2013_Fall.pdfstaruml preparing for class diagram 2012-2013 fall 6. staruml adding a class

  • Upload
    others

  • View
    11

  • Download
    1

Embed Size (px)

Citation preview

STARUMLAND NETBEANSCeng 344

Object Oriented Languages

2012 -2013 FALL 1

� Netbeans for coding

� StarUML for designing

2012 -2013 FALL 2

STARUMLOPENING SCREEN

2012 -2013 FALL 3

STARUMLNEW PROJECT

2012 -2013 FALL 4

STARUMLADDING A PACKAGE

2012 -2013 FALL 5

STARUMLPREPARING FOR CLASS DIAGRAM

2012 -2013 FALL 6

STARUMLADDING A CLASS

2012 -2013 FALL 7

STARUMLDEFINING ATTRIBUTE

2012 -2013 FALL 8

STARUMLDEFINING OPERATION

2012 -2013 FALL 9

STARUMLFIRST CLASS

2012 -2013 FALL 10

NETBEANS

� Creating a New Java Class

� Files>New Project

2012 -2013 FALL 11

NETBEANSNEW PROJECT

2012 -2013 FALL 12

2012 -2013 FALL 13

NETBEANSCREATING A NEW CLASS

2012 -2013 FALL 14

NETBEANSCODING

2012 -2013 FALL 15

Result

How to run

2012 -2013 FALL 16

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