Hi! I need create a class to represent a "rock". When a rock object is created it should have print out a message to the console saying: "Rock 1 created". I should have a field that contains the rock's weight, methods to set and get the weight and method to roll a rock which causes the weight to decrease by 20%.
also I need write a test program that will create three rocks and set their weights to 10kg. The program will then "roll" rock 2 and then print out the weight of rock 2.