logo

Crowdly

Browser

Add to Chrome

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

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

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

class Employee:

__num = 0

def __init__(self, firstname, lastname):

self.__firstname = firstname

self.__lastname = lastname

Employee.__num += 1

def emp_number(self):

print(Employee.__num)

a = Employee("Horus","Lupercal")

b = Employee("Garviel","Loken")

print(b.__num)

b.__num = -1

b.emp_number()
0%
0%
0%
0%
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