Advertisement
nahidjamalli

Lesson #3

Feb 27th, 2020
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.40 KB | None | 0 0
  1. namespace MyNamespace
  2. {
  3.     class MyProgram
  4.     {
  5.         static void Main(string[] args)
  6.         {
  7.  
  8.         }
  9.     }
  10. }
  11.  
  12. struct MyStruct
  13. {
  14.     int a;
  15. }
  16.  
  17. class MyClass
  18. {
  19.     // Access Modifiers
  20.     // public
  21.     public int a;
  22.  
  23.     // private
  24.     private int k;
  25.     int x;
  26.  
  27.     void Func()
  28.     {
  29.         MyClass mc = new MyClass();
  30.         mc.a = 2;
  31.         mc.k = 21;
  32.     }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement