Question:

What Code Can We Put At The Third Line Of The Definition Of Class B To Invoke Its Superclass’s Constructor?

class A:
    def __init__(self, i = 1):
        self.i = i
 
class B(A):
    def __init__(self, j = 2):
        ___________________
        self.j = j
 
def main():
    b = B()
    print(b.i, b.j)
 
main()

 

Answers:


Keywords:

© 2017 QuizBucket.org