Question:

What Will Be The Output Of The Following Code Snippet?

class A:
    def __init__(self, num):
        self.x = num
 
class B(A):
    def __init__(self, num):
        self.y = num
 
obj = B(11)
print ("%d %d" % (obj.x, obj.y))

 

Answers:


Keywords:

© 2017 QuizBucket.org