Follow the DESIGN RECIPE for data definitions:

2.5  Designing methods

Design the following methods for the classes that represent pets:

  1. Method weighsLessThan that determines whether the pet weighs less than the given weight limit for flying in the passenger cabin of an airplane. (Each airline has their own limit.)

  2. Method sameOwner that tells us whether the owner of the pet is the given person. Do this for first two variants of the Pet class.

  3. Method changeOwner that produces a new Pet same as the original one, but with the owner changed to the given one. Do this for first two variants of the Pet class.