The age information is in the class Passengers, but your Bus class happens to handily have an array of Passenger objects, and you can extract the necessary information from these objects by looping...
Type: Posts; User: curmudgeon
The age information is in the class Passengers, but your Bus class happens to handily have an array of Passenger objects, and you can extract the necessary information from these objects by looping...
How would you calculate the average age if someone handed you a sheet of paper with a bunch of names with numbers next to them? What steps would you take?