class A def initialize(attr1) @attr1 = attr1 end def initialize(attr1, attr2) @attr1 = attr1 @attr2 = attr2 end def tell() puts @attr1 end end class B < A def tell(blah) puts "blah" end end b = B.new("a", "b") b.tell()