0

So for this piece of code

class CircleT:

    def __init__(self,x,y,r):
        self.x = x
        self.y = y
        self.r = r 

Lets say I want to create a CircleT object named Circle1.

I would just have to do

Circle1 = CircleT(2,4,6)

But if I had this instead

class CircleT:

    def CircleT(self,x,y,r):
        self.x = x
        self.y = y
        self.r = r 

How would I go about creating the Circle1 object?

kindall
  • 168,929
  • 32
  • 262
  • 294
Epoch79
  • 9
  • 1

0 Answers0