daily pastebin goal
52%
SHARE
TWEET

Untitled

a guest Feb 20th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. interface IImage
  2. {
  3.     void Crop();
  4.     void Turn();
  5.     void Save();
  6. }
  7.  
  8. class Image:IImage
  9. {
  10.     void Crop(){}
  11.     void Turn(){}
  12.     void Save(){}
  13. }
  14.  
  15. interface IImageFr
  16. {
  17.     void Coupez();
  18.     void Tourner();
  19.     void Sauver();
  20. }
  21.  
  22. class Image:IImageFr
  23. {
  24.     void Coupez(){}
  25.     void Tourner(){}
  26.     void Sauver(){}
  27. }
  28.  
  29. class ImageFrAdapter:IImage
  30. {
  31.     private IImageFR adaptee;
  32.    
  33.     public ImageFrAdapter(IImageFR adaptee)
  34.     {
  35.         this.adaptee = adaptee;
  36.     }
  37.    
  38.     void Crop()
  39.     {
  40.         this.adaptee.Coupez();
  41.     }
  42.     void Turn(){}
  43.     void Save(){}
  44. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top