Live quiz

python-programing - Part 24

Question 1 of 25 Hints left: 3
Q1

What will be the output of the following Python code? class father: def __init__(self, param): self.o1 = param class child(father): def __init__(self, param): self.o2 = param >>>obj = child(22) >>>print "%d %d" % (obj.o1, obj.o2)

  • A
  • B
  • C
  • D