private const decimal DefaultWholeSalePrice = 2000; // Purchase price from manufacture #endregion Fields #region Constructors /// <summary> /// Fully qualified JetSki constructor /// </summary> /// <param name="serialNumber">serial number of a jet ski</param> /// <param name="modelName">model name of a jet ski</param> /// <param name="capacity">number of passengers jet ski is intended to carry</param> /// <param name="wholesalePrice">purchase price we pay manufacturer </param> /// <param name="retailPrice">price we charge retail stores to purchase a jet ski</param> /// <param name="length">length of jet ski in feet</param> /// <param name="weight">weight of jet ski in pounds</param> /// <param name="maxSpeed">max speed of jet ski in miles per hour</param> /// <param name="horsePower">horse power of jet ski</param> /// <param name="jstype">type/use of jet ski</param> /// <param name="thrust">thrust power of jet ski</param> /// <param name="jsbrand">brand of jet ski</param> public JetSki(string serialNumber, string modelName, int capacity, decimal wholesalePrice, decimal retailPrice, int length, int weight, int maxSpeed, int horsePower, JStype jstype, int thrust, JSBrand jsbrand) { // WaterCraft this.SerialNumber = serialNumber; this.ModelName = modelName; this.PassengerCapacity = capacity; this.WholeSalePrice = wholesalePrice; this.RetailPrice = retailPrice; this.Length = length; this.Weight = weight; // IPowered this.MaxSpeed = maxSpeed; this.HorsePower = horsePower; // Specific to Jet Ski this.JetSkiType = jstype; this.JetSkiBrand = jsbrand; this.Thrust = thrust; }
/// <summary> /// Jet ski constructor to match toString method /// </summary> /// <param name="serialNumber">serial number of jet ski</param> /// <param name="retailPrice">price we charge retail stores to purchase a jet ski</param> /// <param name="modelName">model name of jet ski</param> /// <param name="jsbrand">brand of jet ski</param> /// <param name="jstype">type/use of a jet ski</param> /// <param name="thrust">thrust power of a jet ski</param> /// <param name="maxSpeed">max speed in miles per hour</param> /// <param name="horsePower">horse power of jet ski</param> public JetSki(string serialNumber, decimal retailPrice, string modelName, JSBrand jsbrand, JStype jstype, int thrust, int maxSpeed, int horsePower) { this.SerialNumber = serialNumber; this.RetailPrice = retailPrice; this.ModelName = modelName; this.JetSkiBrand = jsbrand; this.JetSkiType = jstype; this.Thrust = thrust; this.MaxSpeed = maxSpeed; this.HorsePower = horsePower; }
/// <summary> /// Fully qualified JetSki constructor /// </summary> /// <param name="serialNumber">serial number of a jet ski</param> /// <param name="modelName">model name of a jet ski</param> /// <param name="capacity">number of passengers jet ski is intended to carry</param> /// <param name="wholesalePrice">purchase price we pay manufacturer </param> /// <param name="retailPrice">price we charge retail stores to purchase a jet ski</param> /// <param name="length">length of jet ski in feet</param> /// <param name="weight">weight of jet ski in pounds</param> /// <param name="maxSpeed">max speed of jet ski in miles per hour</param> /// <param name="horsePower">horse power of jet ski</param> /// <param name="jstype">type/use of jet ski</param> /// <param name="thrust">thrust power of jet ski</param> /// <param name="jsbrand">brand of jet ski</param> public JetSki(string serialNumber, string modelName, int capacity, decimal wholesalePrice, decimal retailPrice, int length, int weight, int maxSpeed, int horsePower, JStype jstype, int thrust, JSBrand jsbrand) { // WaterCraft this.SerialNumber = serialNumber; this.ModelName = modelName; this.PassengerCapacity = capacity; this.WholeSalePrice = wholesalePrice; this.RetailPrice = retailPrice; this.Length = length; this.Weight = weight; // IPowered this.MaxSpeed = maxSpeed; this.HorsePower = horsePower; // Specific to Jet Ski this.JetSkiType = jstype; this.JetSkiBrand = jsbrand; this.Thrust = thrust; }