Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace _8_CarSalesman
- {
- public class Engine
- {
- private string model;
- private int power;
- private string displacement = "n/a";
- private string efficiency = "n/a";
- public string Model { get => model; set => model = value; }
- public int Power { get => power; set => power = value; }
- public string Displacement { get => displacement; set => displacement = value; }
- public string Efficiency { get => efficiency; set => efficiency = value; }
- }
- }
Add Comment
Please, Sign In to add comment