But you cannot assign a different Writer to the variable without changing its type which removes half of the polymorphism value. And there is implicit requirement of the inpl function signature. IMHO you might as well use 2 completely unrelated classes with only implicit relationship is function name. Which could probably be made explicit with macro.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
But you cannot assign a different Writer to the variable without changing its type which removes half of the polymorphism value. And there is implicit requirement of the inpl function signature. IMHO you might as well use 2 completely unrelated classes with only implicit relationship is function name. Which could probably be made explicit with macro.