What will be the correct output of the following Python code?
class Ba(object):
def _init_(se|f, x):
selfix = x+2
class De(Ba):
def _init_(self. x. y):
Bax = x‘2
self.y = y+2
def printXY(self):
print(Ba.x+2, self.y‘2)
d = De(10’2, 20+2)
d.printXYO
Correct Answer: 42 48
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Python MCQ Questions