educative.io

The client code can now use the newer models like so

public class Client {
public void main() {
    Collection<F16> myAirForce = new ArrayList<F16>();
    F16 f16A = new F16A();
    F16 f16B = new F16B();
    myAirForce.add(f16A);
    myAirForce.add(f16B);

    for (F16 f16 : myAirForce) {
        f16.fly();
    }
}

}

The method makeF16 was not used at all here. Why did we even define that method?

The makeF16 is called inside the .fly() method.