Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Java (http://www.go4expert.com/forums/java/)
-   -   help with UML (http://www.go4expert.com/forums/help-with-uml-t23982/)

joseph_downing 25Nov2010 00:07

help with UML
 
HEY

im new here ive been looking for java help online and it hasnt been very successful just very stressfull. my instructor in class goes way to fast when trying to give me help. i ask him to slow down, but he speads back up after 10 secs...


i really dont get this UML chart i have for a lab..i ask my instructor for help and he just gives me a "speech about reading the book" when i read the book and its not breaking it down in terms i can understand.. so that brings me here...

Employee

-name: String
-employeeNumber:String
-hireDate:String
-----------------------
+Employee(n:String,num:String,date:String);
+Employee():
+setName(n:String):void
+setEmployeeNumber(e:String):void
+setHireDate(h:String):void
+getName():String
+getEmployeeNumber():String
+getHireDate():String
-isValidEmpName(e:String):boolean
+toString():String

ShiftSupervisor
-salary:double
-bonus:double
--------------------------------
+ShiftSupervisor(n:String,num:String,date:String,
sal:double,b:double):
+ShiftSupervisor():
+setSalary(s:double):void
+setBonus(b:double)void
+getSalary():double
+getBonus():double
+toString():String
________________________________________
if anybody understands this plz i mean PLZ...HELP ME...GUIDE ME IN THE RIGHT DIRECTION...PLZ

paul88 27Nov2010 10:25

Re: help with UML
 
With uml you have the name of class at the top, the attributes and the methods

with the attributes

- is private, + public # protected

- name: string

string will be type

For the methods the same for attributes

you will have + for public, the name of the method, then any parameters to be passed in (String n) then the return type : void.

+name(String n):void

Code:

public void name(String n){


}

Hope tha


All times are GMT +5.5. The time now is 04:06.