help with UML

Discussion in 'Java' started by joseph_downing, Nov 24, 2010.

  1. joseph_downing

    joseph_downing New Member

    Joined:
    Nov 22, 2010
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    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
     
  2. paul88

    paul88 New Member

    Joined:
    Nov 27, 2010
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    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
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice