How class methods work › Forums › Python › How class methods work This topic has 1 reply, 2 voices, and was last updated 1 month, 2 weeks ago by yazdeco. Viewing 2 posts - 1 through 2 (of 2 total) Author Posts November 1, 2025 at 4:18 am #5565 Rajeev BagraKeymaster How class methods work byu/DigitalSplendid inlearnpython Comment byu/DigitalSplendid from discussion inlearnpython Comment byu/DigitalSplendid from discussion inlearnpython November 29, 2025 at 8:52 pm #5803 yazdecoParticipant Instead of return Point(0, 0), I would do return cls(0, 0). This way if you at some point decide to rename Point to e.g. Point2D, you just have to do it once, after the class keyword. 9Apps Author Posts Viewing 2 posts - 1 through 2 (of 2 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In