Eliza is a robot who responds to your questions. When the program starts, Eliza will say:
"Hi there, I'm Eliza! Let's have a chat."
When the user inputs the string:
| # bash <(curl -sL https://gist.githubusercontent.com/vanderhoop/82867f205fc07b415040/raw/a121d690283bc12c1a85b551524dae771ed95020/git_repo_setup_script.sh) | |
| ################################################################################################################# | |
| # Note: This script presupposes that the user has reverted to a trashed commit that has all of their week 1 work. | |
| ################################################################################################################# | |
| # grabs SSH clone url for fork, which we'll use to set up new repos | |
| cd ~/dev/wdi/godot | |
| export origin_url=$(git config --get remote.origin.url) |
You just learned how to define getter and setter methods to a class definition, and also how use them in a program. Put your newfound knowledge to use.
Shirt class), the class's initialize method should take 3 arguments:You just learned how to write a class definition with an initialize method. But it takes time for some concepts to sink in. Tats why you're going to partner up and explain your understanding in your own words.
You just learned how to avoid repeating yourself by using class inheritance. Now you've been tasked with putting that knowledge to use.
~/dev/wdi/godot/w02/d04/student/wdi_the_program/, create a file called student.rbstudent.rb, define a barebones Student class and make it inherit the behaviors of the Human classmain.rb, use require_relative to bring in the code from student.rbstudent.rb file after you've required human.rb, because the former is going to rely on the class definition in the latter.Sears has contracted you to continue working on an application that models its inventory. Sears is really struggling, and right now the only things they have in stock are bikes and shirts. The CEO of Sears took a computer programming course in college, and he knows that both bikes and shirts are examples of a Product. Thus, he has instructed you to reuse the code found in product.rb.
The Sears Class Heirarchy:
*Product*
/ \
/ \
/ \