Python calling method in class
The first argument of all methods is usually called self. It refers to the instance for which the method is being called. Let’s say you have: Then, doing: There’s nothing special about this being called self, you could do the following: Then, doing: In your specific case: (As suggested in comments MissileDevice.RIGHT could be more appropriate here!) You could declare all … Read more