logo

Crowdly

Browser

Add to Chrome

Який результат буде виведено на консоль після виконання наступної програми? cl...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Який результат буде виведено на консоль після виконання наступної програми?

class Box():

def __init__(self, l=5, w=4, h=8):

self.l = l

self.w = w

self.h = h

def volume(self):

return self.l * self.w * self.h

class SmallBox(Box):

def __init__(self, l, w, h):

Box.__init__(self, l, w, h)

def area(self):

return 2*((self.w * self.l) + (self.l * self.h) + (self.w * self.h))

a = SmallBox()

print(a.volume())

print(a.area())

 

More questions like this

Want instant access to all verified answers on learn.ztu.edu.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome