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
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