Python Forum
Is inheritnace the only option
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is inheritnace the only option
#7
(Oct-30-2017, 10:49 PM)metulburr Wrote: So dont use the international_documents method on the Students/International class. Just because its there doesnt mean you need to use it.

I think you mean, don't use it on the Domestic class, right?

Why let domestic see documents, and not use it? Why should domestic even be aware of it? Are you saying inheritance is pointless in this sense? Given that I'm using it because of one attribute.
Reply


Messages In This Thread
Is inheritnace the only option - by QueenSvetlana - Oct-29-2017, 10:43 PM
RE: Is inheritnace the only option - by metulburr - Oct-29-2017, 11:50 PM
RE: Is inheritnace the only option - by snippsat - Oct-30-2017, 05:51 PM
RE: Is inheritnace the only option - by metulburr - Oct-30-2017, 10:49 PM
RE: Is inheritnace the only option - by QueenSvetlana - Oct-30-2017, 11:03 PM
RE: Is inheritnace the only option - by metulburr - Oct-31-2017, 01:41 AM

Forum Jump:

User Panel Messages

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