Advertisement
social1986

Untitled

Feb 18th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.47 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4.  
  5. public class Tyre
  6. {
  7.     private int age;
  8.     private double pressure;
  9.  
  10.     public Tyre(int age, double pressure)
  11.     {
  12.         this.Age = age;
  13.         this.Pressure = pressure;
  14.     }
  15.  
  16.     public double Pressure
  17.     {
  18.         get { return pressure; }
  19.         set { pressure = value; }
  20.     }
  21.    
  22.     public int Age
  23.     {
  24.         get { return age; }
  25.         set { age = value; }
  26.     }
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement