gtarlRobbe

car.cs

Feb 10th, 2015
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.69 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ValueAndReferenceTypes
  8. {
  9.     class Car
  10.     {
  11.         #region Car-Models
  12.         string A = "Ford Mustang GTKR 500";
  13.         string B = "Lamborghini Muci�lago LP 5450";
  14.         string C = "Oskosh M-ATV";
  15.         int currSpeedA = 320;
  16.         int currSpeedB = 400;
  17.         int currSpeedC = 140;
  18.         #endregion
  19.  
  20.         #region Function
  21.         public void PrintState()
  22.         {
  23.             Console.WriteLine("{0} is going {1} MPH.", A, currSpeedA);
  24.  
  25.         }
  26.        
  27.         public void Sub() {
  28.         PrintState();}
  29.  
  30.         #endregion
  31.  
  32.     }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment