forked from CodelyTV/refactoring-code_smells-design_patterns
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
de397ea
commit ff27c87
Showing
1 changed file
with
16 additions
and
21 deletions.
There are no files selected for viewing
This file contains 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