Skip to content

Step 1.1: Default values, cloning and copying#2

Open
ziimakc wants to merge 3 commits intomainfrom
1_1_default_clone_copy
Open

Step 1.1: Default values, cloning and copying#2
ziimakc wants to merge 3 commits intomainfrom
1_1_default_clone_copy

Conversation

@ziimakc
Copy link
Owner

@ziimakc ziimakc commented Jan 10, 2026

Resolves Step 1.1

Task

  • Create a Point type which represents a 2D point (x and y coordinates). This type has to be Copy and Default.
  • Create a Polyline type which represents a non-empty set of Points of unknown size. This type has to be Clone and non-Default.

Solution

Create Point and Polyline types with example valid/invalid usages following requirements.

@ziimakc ziimakc changed the title Complete 1_1_default_clone_copy Step 1.1: Default values, cloning and copying Jan 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant