-
Notifications
You must be signed in to change notification settings - Fork 612
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'Solution' #627
base: master
Are you sure you want to change the base?
'Solution' #627
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job on implementing the system for validating visitor access to slides! 🎉 While the code meets the task requirements, there are a couple of areas for improvement. Consider using the IntegerRange
descriptors in the Visitor
class to ensure consistent validation of attributes. Additionally, you might want to add abstract methods to the SlideLimitationValidator
class to fully leverage the benefits of using an abstract base class. Keep up the good work and happy coding! 😊
✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨
self.name = name | ||
self.age = age | ||
self.weight = weight | ||
self.height = height | ||
|
||
|
||
class SlideLimitationValidator(ABC): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The SlideLimitationValidator
class is intended to be an abstract class, but it does not define any abstract methods. Consider adding abstract methods to enforce implementation in subclasses.
self.age = age | ||
self.weight = weight | ||
self.height = height |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Visitor
class assigns values directly to age
, weight
, and height
without using the IntegerRange
descriptors. Consider using the descriptors to ensure that the values are validated upon assignment.
No description provided.