Advertisement
KodingKid

C# Car Fields and Methods

Apr 16th, 2021
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.18 KB | None | 0 0
  1. class MyClass
  2. {
  3.     string colour1 = "yellow";
  4.     int maxspeed1 = 400;
  5.     public void topgear()
  6.     {
  7.         Console.WriteLine ("The car is going top speed.")
  8.         }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement