Presentation is loading. Please wait.

Presentation is loading. Please wait.

UML Class Example Sales - name: string - monthlyProfit : double[] public class Sales{ private String name; private double[] monthlyProfit; public.

Similar presentations


Presentation on theme: "UML Class Example Sales - name: string - monthlyProfit : double[] public class Sales{ private String name; private double[] monthlyProfit; public."— Presentation transcript:

1

2

3

4

5

6 UML Class Example Sales - name: string - monthlyProfit : double[]
public class Sales{ private String name; private double[] monthlyProfit; public Sales(String name1){ // } public void readProfits(){ public void displayProfits(){ public double highestProfit(){ public double totalProfit(){ public boolean deserveBonus(double amount){ Sales - name: string - monthlyProfit : double[] + Sales(in name1: string) + readProfits(): void + displayInfo(): void + highestProfit(): double + TotalProfit(): double + deserveBonus(in amount: double): boolean

7

8

9

10

11 يتألف من يضم

12

13

14

15

16 After adding one product
+ Purchase Order PRP 1 After adding one product Calling Environment Product p

17

18 After adding one product
+ After adding one product Purchase Order PDP 1 Product Copy Calling Environment Product p

19

20

21

22 Case Study For each of the three UML class descriptions, write the corresponding java code. Write a class with a main method to test the three classes (Test the “add” methods)


Download ppt "UML Class Example Sales - name: string - monthlyProfit : double[] public class Sales{ private String name; private double[] monthlyProfit; public."

Similar presentations


Ads by Google