A main method creates a new MatchBox object, calls the getVolume method and reports the results by printing the following items to the screen A new class must include a main method that creates a new MatchBox object, calls the getVolume method and reports the results by printing the following items to the screen (where the X is replaced by the calculated value) For your assignment, assume that the value of width is 5, height is 10, and the depth is 3. The output should look like the following with X replaced with the appropriate calculated value.
width of MatchBox is X height of MatchBox is X depth of MatchBox is X weight of MatchBox is X Volume is: X