orozCoding / catalog-of-my-things

1 stars 1 forks source link

Adding Book and Label classes #29

Closed orozCoding closed 2 years ago

orozCoding commented 2 years ago

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

orozCoding commented 2 years ago

Thank you @TimmyChan99