if we have two classes, Apple and Orange. Apple has a method named print, while Orange has a method named write. we want to use a uniform interface to realize the output function. in the article , i will introduce how to encapsulate the different methods from different class.