子类circle
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
class Shape:
|
||||
def area(self):
|
||||
return 0
|
||||
class Circle(Shape):
|
||||
def __init__(self, radius):
|
||||
self.radius = radius
|
||||
Reference in New Issue
Block a user