Fahim-Khan-P / Ruby-Capston

In this project, we will create a console app that will help to keep a record of different types of things you own: books, music albums, movies, and games. Everything will be based on the given UML class diagram and the data will be stored in JSON files as well.
MIT License
0 stars 0 forks source link

[2pt] Implement methods - Member 3 #6

Open Fahim-Khan-P opened 1 year ago

Fahim-Khan-P commented 1 year ago
  1. should take an instance of the Item class as an input
  2. should add the input item to the collection of items
  3. should add self as a property of the item object (by using the correct setter from the item object)
  1. should override the method from the parent class
  2. should return true if parent's method returns true AND if last_played_at is older than 2 years
  3. otherwise, it should return false
tonnymuchui commented 1 year ago

Done