Skip to content

Instantly share code, notes, and snippets.

@siakaramalegos
Created October 22, 2015 15:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save siakaramalegos/2507362184bb96444506 to your computer and use it in GitHub Desktop.
Save siakaramalegos/2507362184bb96444506 to your computer and use it in GitHub Desktop.
Class Mojo that inherits from class cup
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