Question: Using GridWorld documentation, provide a UML class diagram for the Actor class and its descendants, Bug, Rock, and Flower. This should be similar to this
Using GridWorld documentation, provide a UML class diagram for the Actor class and its descendants, Bug, Rock, and Flower. This should be similar to this chapter’s UML class diagram for the Person class and its descendants. Include UML specifications of all class and instance variables and constants, as well as all methods in these classes.
UML class diagram

Commission +COMMISSION_RATE: double = 0.10 +addSales(sales: double): void Commissioned -sales: double = 0.0 +Commissioned (name: String) +addSales(sales: double): void +getPay(): double Salaried And Commissioned -sales: double +SalariedAndCommissioned( name: String, salary: double) +addSales(sales: double): void +getPay(): double Salaried2 Employee2 -name: String +Employee2(name : String) +get Pay(): double +printPay (date: int) : void -salary: double +Salaried2 (name : String. salary: double) +getPay(): double Hourly2 -hourly Rate: double -hours: double = 0.0 +Hourly 2(name : String. rate : double) +getPay(): double +addHours (hours: double): void Payrol13 +main(args: String[]): void
Step by Step Solution
3.44 Rating (151 Votes )
There are 3 Steps involved in it
CSS Actor location Location I direction int color Color I world ActorWorld 1 Actor ActorColor color ... View full answer
Get step-by-step solutions from verified subject matter experts
