class Tree
end
module TreeStuff
def initialize(data);
@data = data;
end;
def toString;
puts "@data"
end;
end
class TreeItem;
include TreeStuff;
def initialize(data)
puts "Error: WRONG!"
end;
def toString;
print "Error: WRONG!";
end;
end;
class NumericTreeItem < TreeItem
include TreeStuff;
end
class StringTreeItem < TreeItem
include TreeStuff;
end
Y2xhc3MgVHJlZQoKZW5kCgptb2R1bGUgVHJlZVN0dWZmCglkZWYgaW5pdGlhbGl6ZShkYXRhKTsKCSAJQGRhdGEgPSBkYXRhOwoJZW5kOwoJZGVmIHRvU3RyaW5nOwoJCXB1dHMgIkBkYXRhIgoJZW5kOwplbmQKCmNsYXNzIFRyZWVJdGVtOwoJaW5jbHVkZSBUcmVlU3R1ZmY7CglkZWYgaW5pdGlhbGl6ZShkYXRhKQoJIAlwdXRzICJFcnJvcjogV1JPTkchIgoJZW5kOwoJZGVmIHRvU3RyaW5nOwoJCXByaW50ICJFcnJvcjogV1JPTkchIjsKCWVuZDsKZW5kOwoKCmNsYXNzIE51bWVyaWNUcmVlSXRlbSA8IFRyZWVJdGVtCiAgaW5jbHVkZSBUcmVlU3R1ZmY7CmVuZAoKY2xhc3MgU3RyaW5nVHJlZUl0ZW0gPCBUcmVlSXRlbQogIGluY2x1ZGUgVHJlZVN0dWZmOwplbmQ=