Question: Given the following classes and their objects, what is printed def _ _ init _ _ ( self ) : print ( C 1

Given the following classes and their objects, what is printed
def __init__(self):
print("C1")
class C2(C1):
def __init__(self):
print("C2")
super().__init__()
class C3(C2):
def __init__(self):
print("C3")
super().__init__()
c3=C3()
print(c3)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!