I\'m practicing polymorphism inheritance in java and I got confused about how to implement one adaptor for two classes in java.
Suppose we wrote a simple application