Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- class Program
- {
- static void Main(string[] args)
- {
- int x;
- int y;
- x = 8;
- y = x;
- y = 6;
- Console.WriteLine("x = " + x);
- MyInt X = new MyInt();
- MyInt Y = new MyInt();
- X.num = 8;
- Y = X;
- Y.num = 6;
- Console.WriteLine("X = " + X.num);
- Console.ReadLine();
- }
- }
- class MyInt
- {
- public int num;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement