Question:

Which Of The Following Statements Are Correct About The Given Code Snippet?

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

 

Answers:


Keywords:

© 2017 QuizBucket.org