Created
July 3, 2020 10:53
-
-
Save zHaytam/2a2da566e9019e599396b48b5e35d694 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Generated Rectangle class omitted | |
void main() | |
{ | |
Rectangle rectangle = new Rectangle(10.0, 5.0); | |
Rectangle rectangle2 = rectangle.<>Clone(); | |
rectangle2.Width = 20.0; | |
Rectangle rectangle3 = rectangle2; | |
Rectangle rectangle4 = rectangle3.<>Clone(); | |
rectangle4.Height = 10.0; | |
Rectangle rectangle5 = rectangle4; | |
Console.WriteLine(rectangle.Equals(rectangle3)); | |
Console.WriteLine(rectangle3.Equals(rectangle5)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment