behavior of polymorphic methods inside constructors