Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Class defining
#1
[Image: 6mS2yzL]

No idea what it means by "call the getname function"

How is this question answerable?
Reply
#2
Do you not know how methods work? If not, then you need to go and review your book or notes on classes.
Reply
#3
https://docs.python.org/3/tutorial/classes.html
Reply
#4
Offtopic but i have to, sorry.
self.name = catname;
If some Java/Javascript developer thinks he can code Python and puts ; everywhere Big Grin
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020