It could be noted that references are often only syntactic sugar (or always, depending where your sugar ends). For example, if the functions returned pointers instead, one could write
obj.setNum(10)->displayNum();
, no damage done.