I have a student who is making a snake game in Java. He has a paint() function that Java creates and uses for any program. He adds all of his visual code there. In order to call that paint function Java uses repaint() so that it can continuously redraw the visuals. He calls this repaint() function, that ultimately calls paint(), multiple times in his code.
Can the paint() function be used for his abstraction? I’m just concerned with the function name and call being different so they may not think it’s legit.