QuestionQ27

VerifiedAdvanced Object-Oriented Programming

Analyze the following code snippet. Which method should be identified as a static method?

Question Image

Explanation

A static method does not use instance state. isElementCorrect() operates only on its word parameter, whereas isSolved() depends on the instance attribute self.progress.

Community Discussion

No comments yet. Be the first to start the discussion!