Hi Bek,
Indeed, the boolean return value of the increasePay method is not used in the program. To see a difference in the output determined by the result of increasePay, I modified the code in the main method as follows:
Code:
for (Person p: workers){
System.out.println(((Payable)p).increasePay(30)?"Done":"Failed");
}
Regarding your first question, I think placing the class that contains the main method in a separate package is a matter of choice. You can organize the files in your project according to your own design. For example, if you want to change the location of the compiled classes in Eclipse, you can do so by selecting Project->Properties->Java Build Path->Source and modifying the name of the Default Output Folder.
Happy learning!
Cristina