Hi! I noticed that in the source code of the DelayedFadeOutTransition and EasedFadeOutTransition classes you could apply the Decorator design pattern.Applying this pattern to your design lets you attach new behaviors to objects by placing these objects inside special wrapper objects that contain the behaviors. In addition, you can fix the code duplication issue in both classes.
I attach an idea of implementing the Decorator pattern.
Hi! I noticed that in the source code of the DelayedFadeOutTransition and EasedFadeOutTransition classes you could apply the Decorator design pattern.Applying this pattern to your design lets you attach new behaviors to objects by placing these objects inside special wrapper objects that contain the behaviors. In addition, you can fix the code duplication issue in both classes.
I attach an idea of implementing the Decorator pattern.