Question:

What Will Be The Output Of The Following Code Snippet?

class A:
    def getInfo(self):
        return "A's getInfo is called"
  
    def printInfo(self):
        print(self.getInfo(), end = ' ')
 
class B(A):
    def getInfo(self):
        return "B's getInfo is called"
 
def main():
    A().printInfo()
    B().printInfo()
 
main()

 

Answers:


Keywords:

© 2017 QuizBucket.org