Draw() inside a class

You might find this post interesting as it gives an insight into using object oriented programming (i…e. classes and objects) for animation .