Skip to content

Instantly share code, notes, and snippets.

Created June 1, 2015 12:58
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 anonymous/eefa67a086ceb2f0cce9 to your computer and use it in GitHub Desktop.
Save anonymous/eefa67a086ceb2f0cce9 to your computer and use it in GitHub Desktop.
class Person
def initialize(name)
@name = name
end
end
class Employee < Person
def initialize(name)
@name = super(name)
end
def puts_name_of_employee()
@name.to_s
end
frank = Employee.new("Frank")
puts frank.puts_name_of_employee()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment