Write a concrete method with protected visibility for Worker…

Write a concrete method with protected visibility for Worker called earnMoney. It receives an int (increment), which indicates how much money a worker’s money will be increased by. If the parameter is positive, the worker’s money will be adjusted accordingly, otherwise, it should do nothing.

class X:    def method(self):        print(“X”)class Y(X): …

class X:    def method(self):        print(“X”)class Y(X):    def method(self):        print(“Y”)class Z(X):    def method(self):        print(“Z”)class A(Y, Z):    def method(self):        print(“A”)class B(A, Y):    def method(self):        print(“B”)class C(B):    passprint(C.__mro__)