PCAP Object-Oriented Programming • Set 7
PCAP Object-Oriented Programming Practice Test 7 — 15 questions with explanations. Free, no signup.
Refer to the exhibit. What is the output?
class A:
def method(self):
print("A", end="")
class B(A):
def method(self):
print("B", end="")
super().method()
class C(A):
def method(self):
print("C", end="")
super().method()
class D(B, C):
def method(self):
print("D", end="")
super().method()
obj = D()
obj.method()