Anonymous Anonymous - 3 months ago
1045 0

No description

C#

Car.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Lektion3Ovning
{
    class Car
    {
        public int Speed { get; set; }
        public string Make { get; set; }



        public int Gas()
        {
            Speed += 10;
            Console.WriteLine($"Speed: {Speed}km/h");
            return Speed;
        }
    }
}
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download