Advertisement
KodingKid

C# OOP - Basic Scripting #5

May 18th, 2021
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.25 KB | None | 0 0
  1. public class pencil {
  2.     string type = "graphite";
  3.     string color = "grey";
  4.     static bool drawing = false;
  5.     public static void draw() {
  6.         drawing = true;
  7.     }
  8.     public static void stopdraw() {
  9.         drawing = false;
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement