Class Vehicle
- Namespace
- Exercise3
- Assembly
- Exercise3.dll
public class Vehicle
- Inheritance
-
Vehicle
- Derived
- Inherited Members
Constructors
Vehicle()
public Vehicle()
Vehicle(string, string, int, int, string)
public Vehicle(string uuid, string color, int weight, int length, string type = "")
Parameters
Properties
Color
public string Color { get; set; }
Property Value
Length
public int Length { get; set; }
Property Value
Type
public string Type { get; }
Property Value
Uuid
public string? Uuid { get; set; }
Property Value
Weight
public int Weight { get; set; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
ToString2()
public virtual string ToString2()