How about:
Flight myFlight(1274, 675);
or
Flight myFlight=Flight(1274, 675);
Those are a lot more intuitive (IMO) and are done simply by having a constructor that takes those two parameters.
How about:
Flight myFlight(1274, 675);
or
Flight myFlight=Flight(1274, 675);
Those are a lot more intuitive (IMO) and are done simply by having a constructor that takes those two parameters.