I've recently been getting my game a lot more of functions for the entities: growing, IA, colours depending of season, position, magic, teleportation an d a lot more. The problem was that for everything I wanted to create (for example a tree), I had to extends or just copy fragments of code that were lately used, and today, I've decided to change that.
So I've created my interface with an update method, I've implemented it... And when I've searched for papers, information or examples, everything was made in C++! And I don't fully understand this programming language!
So the question, how to achieve this, or any example, and important, everything in Java pleaseeee! (And yeah, I understand this question has been made a lot of times :D)