I have a class need to use a object, and the object is constraint of some kind of class. However, I have two design for this method to implement: generic and polymorphism, t