/* * Created by SharpDevelop. * User: allann * Date: 15-11-2004 * Time: 22:47 * */ using System; namespace TouristicRental03 { /// /// Description of Rental. /// public class Rental { public Rental() { } public Rental(String passportNo, Bicycle bicycle) { this.passportNo = passportNo; this.bicycle = bicycle; //-1 means created but not finished this.hours = -1; } public int Hours { get {return this.hours;} set {this.hours = value;} } public String PassportNo { get {return this.passportNo;} } public Bicycle Bike { get {return this.bicycle;} } public override String ToString() { return passportNo +"\t"+ bicycle +"\t"+ hours; } private String passportNo; private Bicycle bicycle; private int hours; } }