Created
October 22, 2015 15:11
-
-
Save siakaramalegos/2507362184bb96444506 to your computer and use it in GitHub Desktop.
Class Mojo that inherits from class cup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require_relative "cup" | |
class Mojo < Cup | |
def initialize | |
super | |
puts "Welcome to Mojo Coffee" | |
end | |
end | |
sias_cap = Cup.new | |
lindsays_latte = Cup.new | |
sias_cap.fill | |
lindsays_latte.fill | |
sias_cap.sip 20 | |
lindsays_latte.quantity |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment