class Man
attr_reader :name
def initialize(name)
@name = name
end
end
class Employee < Man
attr_reader :position
def initialize(name)
super(name)
@position = "unknown"
end
end
employee = Employee.new("Max")
puts "name is '#{employee.name}'"
puts "position is '#{employee.position}'"