[Sorry Posted it in the wrong topic too I believe]
Hey,
I've been researching and trying to figure out UML diagrams (and even how classes work, including super classes) and regardless how much research I do I still don't seem to understand it.
It's currently for a first year java course I'm taking (required by my program) and we were given this UML diagram to write a code for but I don't understand what it is telling me to do. Can anyone elaborate on this?
The Hourly and Fixed Salary are subclasses of the Employee Superclass (if I used the lingo right)
Employee
-----------------------
- Name: String
- EmplID: int
-----------------------
+Employee(name:String)
+getName() name:String
+setName(name:String) void
#emplSal() salary: double
+toString() out:String
+ getEmplID() id: int
Hourly
-----------------------
- Rate: double
- Hours: double
-----------------------
+Hourly (name: String, rate: double, hours: double)
+setRate(rate: double) void
+setHours(hrs: double) void
+getRate () rate: double
+getHours () hrs: double
+toString() out:String
FixedSalary
-----------------------
- FixedSal: double
-----------------------
+ FixedSalary (name: String, fSal: double)
+setFSal(rate: double) void
+getFSal () rate: double
+toString() out:String