C# Programming Challenge: OOP Principles Part 3 – Calling Class Methods, Looping Through C# Array of Objects

Share it with your friends Like

Thanks! Share it with your friends!


C# How to Program – C# Array of Objects

1. Modify the test class from Task 1 part 6 to create a fleet, add 4 cars to it, print the total value of the fleet to the console, and print the value of the least and most valuable cars in the fleet to the console.
2. Have the test class call GetCars on the fleet for a specified year, iterate over the resulting array (use a foreach loop) printing the details of each car to the console.

DOWNLOAD SOURCE CODE: yt_car_fleetcar


Write a comment