Python Forum
Class example -i don't understand the error
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Class example -i don't understand the error
#8
(Feb-01-2019, 10:50 PM)Larz60+ Wrote: The real lesson to learn here is that python doesn't need setters and getters, that's java

so,in python how should this code be???
if there are no needs for setters and getters how can i write it??
Using functions??
Can you please show me?

--As for the exercise i just added a third attribute to Superclass--
Reply


Messages In This Thread
RE: Class example -i don't understand the error - by sonedap - Feb-02-2019, 06:50 AM

Forum Jump:

User Panel Messages

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