Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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