Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Inheritance problem
#7
OK, I understand, I had hoped to be able to make a class from "loose ends"
that have been created over time.
This is how i get the right results:
from geometryclass import *
 
mySpere = sphere(10)
print(mySphere.surface())
myCube = cube(10)
print(myCube.surface())
I think geometry needs to be a superclass, whatever that is.
I'll investigate :-)
Paul
Reply


Messages In This Thread
Inheritance problem - by DPaul - May-05-2020, 10:04 AM
RE: Inheritance problem - by buran - May-05-2020, 11:34 AM
RE: Inheritance problem - by DPaul - May-05-2020, 03:01 PM
RE: Inheritance problem - by buran - May-05-2020, 03:46 PM
RE: Inheritance problem - by deanhystad - May-05-2020, 04:01 PM
RE: Inheritance problem - by buran - May-05-2020, 04:08 PM
RE: Inheritance problem - by DPaul - May-05-2020, 04:14 PM
RE: Inheritance problem - by buran - May-05-2020, 04:22 PM
RE: Inheritance problem - by deanhystad - May-05-2020, 04:42 PM
RE: Inheritance problem - by DPaul - May-05-2020, 05:46 PM
RE: Inheritance problem - by buran - May-05-2020, 06:37 PM
RE: Inheritance problem - by deanhystad - May-05-2020, 08:13 PM
RE: Inheritance problem - by DPaul - May-06-2020, 06:35 AM
RE: Inheritance problem - by buran - May-06-2020, 06:44 AM
RE: Inheritance problem - by DPaul - May-06-2020, 07:38 AM
RE: Inheritance problem - by buran - May-06-2020, 07:46 AM
RE: Inheritance problem - by DPaul - May-06-2020, 05:30 PM
RE: Inheritance problem - by buran - May-06-2020, 05:35 PM
RE: Inheritance problem - by DPaul - May-07-2020, 10:13 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Inheritance problem Maryan 0 1,330 Oct-25-2020, 02:39 PM
Last Post: Maryan

Forum Jump:

User Panel Messages

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