Interface with basic implementation in C#
Today we have simple question:
How to avoid abstract classes by giving base implementation?
Once in a time I was building animation system which was planned to be used in IGWOCTISI project. It happened that I wanted to created some predefined tweens (animated translations) like ScaleTo, MoveTo, RotateBy and so on.
In the horizon appeared a requirement which was pretty straightforward:
public class MoveTo<T> : Animation<T> where T : ITransformable
The fact was that my type T not always was able to be some Transformable object.→ Continue reading