private const decimal DefaultWholeSalePrice = 500000; // Purchase price from manufacter #endregion Fields #region Constructors public MotorYacht(string serialNumber, string modelName, int capacity, decimal wholesalePrice, decimal retailPrice, int length, int weight, int maxSpeed, int horsePower, MYType motorYachtType, MYBrand motorTypeBrand, int numberOfDecks) { // 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 = DefaultMaxSpeed; this.HorsePower = DefaultHorsePower; // Specific to Motor Yacht this.MotorYachtType = DefaultMYType; this.MotorYachtBrand = DefaultMYBrand; this.NumberOfDecks = DefaultNumberOfDecks; }
public MotorYacht(string serialNumber, decimal retailPrice, string modelName, MYBrand motorTypeBrand, MYType motorYachtType, int cabins, int numberOfDecks) { this.SerialNumber = serialNumber; this.RetailPrice = retailPrice; this.ModelName = modelName; this.MotorYachtBrand = motorTypeBrand; this.MotorYachtType = motorYachtType; this.Cabins = cabins; this.NumberOfDecks = numberOfDecks; }
public MotorYacht(string serialNumber, string modelName, int capacity, decimal wholesalePrice, decimal retailPrice, int length, int weight, int maxSpeed, int horsePower, MYType motorYachtType, MYBrand motorTypeBrand, int numberOfDecks) { // 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 = DefaultMaxSpeed; this.HorsePower = DefaultHorsePower; // Specific to Motor Yacht this.MotorYachtType = DefaultMYType; this.MotorYachtBrand = DefaultMYBrand; this.NumberOfDecks = DefaultNumberOfDecks; }