Ruby - Inheritance
What will be the output of this Ruby code?
class Parent
def add(x, y)
x + y
end
end
class Child < Parent
def add(x, y)
super(x, y) * 2
end
end
puts Child.new.add(3, 4)