Question: In C# window Form Add a class library project (VehiclesLib) To the Library project Add class: Vehicle (_make, _model, _year, _price, _vin), Add constructor and
In C# window Form Add a class library project (VehiclesLib) To the Library project
Add class: Vehicle (_make, _model, _year, _price, _vin), Add constructor and get properties, Method: UpdatePrice(decimal newPrice).
Then Add a class: Person (_firstname, _lastname, List vehicleList), Add constructor, get properties, Method: Add(Vehicle v), Method: Remove(string vin) (remove by vin number)
In Form1: create a list of person, preload the list with at least 7 people to each add at least 2 vehicles, provide gui to display all the people and their vehicles, provide gui to add a vehicle to a person, provide gui to update the price of a vehicle of a person, provide gui to remove (sell) a car of a person.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
