Question: In the following class, WT is a ( n ) _ _ _ _ _ _ _ _ _ _ variable. class VolumeRobot ( object

In the following class,WT is a(n)__________ variable.
class VolumeRobot(object):
WT =200
def init(self, r, h):
self.radius = r
self.height = h
def calcArea(self):
self.area = math.pi * self.radius **2
def calcVolume(self):
self.volume = self.area * self.height;
heaviness =10
self.bulk = heaviness * VolumeRobot.WT * self.volume
def str(self):
return "Radius: %0.2f, Area: %0.2f, Volume: %0.2f"%(self.radius, self.area, self.volume)
In the following class, WT is a ( n ) _ _ _ _ _ _

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!