Advertisement
KodingKid

Private Modifiers in C#

Mar 23rd, 2021
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.17 KB | None | 0 0
  1. class Humanoid
  2. {
  3.   private string model = "Player1";
  4.   static void Main(string[] args)
  5.   {
  6.     Humanoid myObj = new Humanoid();
  7.     Console.WriteLine(myObj.model);
  8.   }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement