- To get practice and build muscle memory writing class declarations
- To get practice instantiating objects of your own design
- Write out class definitions outlined below:
- a Shirt class
- upon instantiation (meaning the creation of a new object of the
Shirtclass), the class'sinitializemethod should take 3 arguments:sizecolortext- ^^^^^^within your initialize method, set these arguments to instance variables of the same name
- instantiate a new shirt,
pearl_jam_t, which is extra-large, a nicely faded black, and says "Yield Tour 1998" - instantiate another new shirt,
hipster_plaidwhich is size medium, the color red, says "NO LOGO" on the back - instantiate another new shirt,
david_beckham_jerseywhich is large, white, and has the text "Beckham"
- upon instantiation (meaning the creation of a new object of the
- a Concert class
- upon instantiation, the Concert class's initialize method should take 4 arguments:
bandcityvenuedate- instantiate a new concert,best_night_of_life, that represents Built to Spill's performance at the Metro in Chicago on May 8th, 2005. - instantiate a new concert,embarrassing_first_concert, which took place in Milwaukee, Wisconsin in like 1998 at the Marcus Amphitheater. The band? Sugar Ray.