Advertisement
Guest User

Untitled

a guest
Oct 27th, 2011
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. {
  2. class Program
  3. {
  4. static void Main(string[] args)
  5. {
  6. int x;
  7. int y;
  8. x = 8;
  9. y = x;
  10. y = 6;
  11.  
  12. Console.WriteLine("x = " + x);
  13.  
  14. MyInt X = new MyInt();
  15. MyInt Y = new MyInt();
  16.  
  17. X.num = 8;
  18. Y = X;
  19. Y.num = 6;
  20.  
  21. Console.WriteLine("X = " + X.num);
  22. Console.ReadLine();
  23. }
  24. }
  25.  
  26. class MyInt
  27. {
  28. public int num;
  29. }
  30. }
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement