C Sharp - How can I add a line of code that will List out the Vehilce details for Example Vechile 1 Details : The make of this truck is :ToytoaThe model of the trcuk is : TacomaThe year the truck was made is : 2024The status of the truck is : True instead of True, how Do i get this to say Available ?Truck notes : Scratch on driver side door public override void DisplayVehicleInformation() {// able to use keyword base to call functions in base class for common properties in Vehicle {// note to self, do not add a + with the variable Console.WriteLine($"The make of the car is :{Make} "); Console.WriteLine($"The model of the car is : {Model}"); Console.WriteLine($"The year the car was made is : {Year}"); Console.WriteLine($"The status of the car is : {Status}"); Console.WriteLine($"Notes : {Notes}"); } }
C Sharp - How can I add a line of code that will List out the Vehilce details for Example
Vechile 1 Details :
The make of this truck is :Toytoa
The model of the trcuk is : Tacoma
The year the truck was made is : 2024
The status of the truck is : True instead of True, how Do i get this to say Available ?
Truck notes : Scratch on driver side door
public override void DisplayVehicleInformation()
{// able to use keyword base to call functions in base class for common properties in Vehicle
{// note to self, do not add a + with the variable
Console.WriteLine($"The make of the car is :{Make} ");
Console.WriteLine($"The model of the car is : {Model}");
Console.WriteLine($"The year the car was made is : {Year}");
Console.WriteLine($"The status of the car is : {Status}");
Console.WriteLine($"Notes : {Notes}");
}
}
Trending now
This is a popular solution!
Step by step
Solved in 2 steps