Task 2-Group of workers objects-solution:
Figure 1: Class Worker
In the main class, workers should be created as objects, data should be entered for them:
Figure 2: Class named GroupsOfWorker
Then calculate the weekly earnings and display on the screen:
Figure 3: Testing application
Return to additional example - classes and objects in JAVA
