Class Boat
- Namespace
- Exercise3
- Assembly
- Exercise3.dll
public class Boat : Vehicle
- Inheritance
-
Boat
- Inherited Members
Constructors
Boat(string, string, int, int, decimal, decimal, decimal)
public Boat(string uuid, string color, int weight, int length, decimal maxWaterDepth, decimal maxSpeed, decimal deplacement)
Parameters
uuidstringcolorstringweightintlengthintmaxWaterDepthdecimalmaxSpeeddecimaldeplacementdecimal
Properties
Deplacement
public decimal Deplacement { get; set; }
Property Value
MaxSpeed
public decimal MaxSpeed { get; set; }
Property Value
MaxWaterDepth
public decimal MaxWaterDepth { 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 override string ToString2()
Returns
ToStringTypeSpec()
public string ToStringTypeSpec()