Question: Lab Object is a program-along lab. It consists of an enum called Size that has the following enum constants: XS, S, M, L, and XL,
Lab Object is a program-along lab.
It consists of an enum called Size that has the following enum constants: XS, S, M, L, and XL,
a class Balloon (see video),
and a class BalloonApp. BalloonApp compares 2 identical Balloon objects, 2 separate objects with the same content, and 2 different objects. If you missed class I recommend to look at those different options and to see how the implementation of equals and hashCode affects the outcome of the comparison.
As part of the lab we also create a gui generates 2 random balloon objects and compares them with each other ( see video)
How do you acomplish this task?

Lab Balloon air XS helium S not equal Get Random Balloons
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
