Consider the code, and choose the correct statement: 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()
Correct Answer: Class B inherits A, but the data field i in A is not inherited.
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Python MCQ Questions