Question:

What Will Be The Output Of The Following Code Snippet?

class A:
    def __str__(self):
        return "A"
 
class B(A):
    def __str__(self):
        return "B"
 
class C(B):
    def __str__(self):
        return "C"
 
def main():
    b = B()
    a = A()
    c = C()
    print(c, b, a)
 
main()

 

Answers:


Keywords:

© 2017 QuizBucket.org