Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApp1
- {
- class Engine
- {
- private string model;
- private double power, displacement;
- private string efficiency;
- public String Model
- {
- set { this.model = value; }
- get { return this.model; }
- }
- public Double Power
- {
- set { this.power = value; }
- get { return this.power; }
- }
- public Double Displacement
- {
- set { this.displacement = value; }
- get { return this.displacement; }
- }
- public String Efficiency
- {
- set { this.efficiency = value; }
- get { return this.efficiency; }
- }
- }
- }
Add Comment
Please, Sign In to add comment