Python Forum
Class/Method Confusion
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Class/Method Confusion
#2
You don't need a new method. You need to change Employee.__str__ to use the class name (self.__class__.__name__) instead of just the word 'Employee'.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
Class/Method Confusion - by ramadan125 - Sep-09-2018, 09:09 PM
RE: Class/Method Confusion - by ichabod801 - Sep-10-2018, 12:19 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Please, how do I call the method inside this class Emekadavid 1 1,680 Jun-26-2020, 01:26 PM
Last Post: Yoriz
  class method on two object gabejohnsonny21 4 2,470 Apr-22-2020, 06:57 AM
Last Post: DeaD_EyE
  Class and calling a method Zatoichi 3 3,122 Mar-13-2018, 08:44 PM
Last Post: Zatoichi

Forum Jump:

User Panel Messages

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