Dprogrammed1

java ques 11

Feb 22nd, 2019
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.10 KB | None | 0 0
  1. Rectangle r1 = new Rectangle();
  2. r1.setColor(Color.blue);
  3. Rectangle r2 = r1;
  4. r2.setColor(Color.red);
Advertisement
Add Comment
Please, Sign In to add comment