Recently I started to learn Python, I learned the syntax, now I understand Pygame. I didn’t really understand about the Group class from the pygame.sprite module.
Suppose there is a class Bullet , in which there is a method update() , and I created a group bullets based on the class Group ( bullets = Group() ). I read that the Group class has an update() method that calls the update() method from the Bullet class (if we create a group to work with the Bullet class) for each sprite in the bullets group.
So, I wanted to ask if we have several imported modules, each of which has a class in which there is an update() method, then how to understand that the bullets.update() command will call the update() method from the class we need ?
I hope that you will understand what I wanted to say. Thank you in advance.