Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
use of subclass
#4
(Sep-17-2020, 12:37 PM)ebolisa Wrote: I didn't either so, I installed it:
creating sub-class for each currency is not the way to go. Creating class USD does not add benefit. You already have the currency information as property of Money class. Also what will be difference between USD and EUR class for example?
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
use of subclass - by ebolisa - Sep-17-2020, 12:17 PM
RE: use of subclass - by jefsummers - Sep-17-2020, 12:35 PM
RE: use of subclass - by ebolisa - Sep-17-2020, 12:37 PM
RE: use of subclass - by buran - Sep-17-2020, 01:07 PM
RE: use of subclass - by jefsummers - Sep-17-2020, 01:08 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Create a new subclass in a Python extension based on an existing class voidtrance 6 1,385 Mar-25-2025, 06:37 PM
Last Post: voidtrance
  Subclass initialized property used in parent class method. Is it bad coding practice? saavedra29 5 3,684 Feb-07-2022, 07:29 PM
Last Post: saavedra29
Star Recursively convert nested dicts to dict subclass Alfalfa 1 3,860 Jan-22-2021, 05:43 AM
Last Post: buran
  Accessing subclass with a variable David_S 2 2,786 May-19-2020, 05:55 PM
Last Post: David_S
  How can I create a subclass of XlsxWriter? aquerci 2 2,925 May-04-2020, 07:41 PM
Last Post: aquerci
  Design Pattern for accessing subclass attributes UGuntupalli 2 2,865 Jul-30-2019, 11:09 PM
Last Post: UGuntupalli
  dynamically creating a subclass sidereal 2 5,982 Jan-04-2018, 11:10 PM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

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