예제 #1
0
        public override string displayInfo()//overrides the display method
        {
            Trip trip = new Trip(this.VType, this.AvgSpeed, this.Distance);

            return(base.displayInfo() + "\n" + "Trolly car amount is: " + this.TCarAmount + "\n" + "Travel time is: " + trip.getTime() + " hours");
        }
예제 #2
0
        public override string displayInfo()//overrides the display method
        {
            Trip trip = new Trip(this.VType, this.AvgSpeed, this.Distance);

            return(base.displayInfo() + "\n" + "Transmission type is: " + this.TransType + "\n" + "Travel time is: " + trip.getTime() + " hours");
        }