In this branch, I created the Book and Label classes
Book class
All Book class properties visible in the diagram are defined and set up in the constructor method.
Implemented the can_be_archived?() method to the Book class:
it overrided the mIethod from the parent class
It returns true if parent's method returns true OR if cover_state equals to "bad", otherwise, it returns false
Label class
All Label class properties visible in the diagram are defined and set up in the constructor method.
Implemented methods:
add_item
It takes an instance of the Item class as an input
It adds the input item to the collection of items
It adds self as a property of the item object (by using the correct setter from the item object)
In this branch, I created the Book and Label classes
Book class
All Book class properties visible in the diagram are defined and set up in the constructor method.
Implemented the
can_be_archived?()
method to the Book class: it overrided the mIethod from the parent class It returns true if parent's method returns true OR if cover_state equals to "bad", otherwise, it returns falseLabel class
All Label class properties visible in the diagram are defined and set up in the constructor method.
Implemented methods: add_item