Skip to content

Conversation

Mykyta-Panchenko
Copy link

Refactored Booking Class for Better Encapsulation & Method Design

Exposed private fields as read-only properties.
Marked IsBetween() as static since it does not depend on instance state.
Added null-checks in the constructor to ensure valid input.

Closes #62

Refactored Booking Class for Better Encapsulation & Method Design

Exposed private fields as read-only properties.
Marked IsBetween() as static since it does not depend on instance state.
Added null-checks in the constructor to ensure valid input.
Closes CodelyTV#62
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