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 ValueAndReferenceTypes
- {
- class Car
- {
- #region Car-Models
- string A = "Ford Mustang GTKR 500";
- string B = "Lamborghini Muci�lago LP 5450";
- string C = "Oskosh M-ATV";
- int currSpeedA = 320;
- int currSpeedB = 400;
- int currSpeedC = 140;
- #endregion
- #region Function
- public void PrintState()
- {
- Console.WriteLine("{0} is going {1} MPH.", A, currSpeedA);
- }
- public void Sub() {
- PrintState();}
- #endregion
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment