Select the correct option to test your answer:
Computer
Concept Of Object Oriented Programs In Python
Difficulty: Medium
What will be the output of the following Python code? class A: def __init__(self,x): self.x = x def count(self,x): self.x = self.x+1 class B(A): def __init__(self, y=0): A.__init__(self, 3) self.y = y def count(self): self.y += 1 def main(): obj = B() obj.count() print(obj.x, obj.y) main()
More Computer Questions
For selecting debit note voucher we have to use ________ key
What is the term for an exception that occurs during the execution of a program in C#?
How many different positions can you set for drop cap in Ms Word?
You can delete text by___________?
The . . . . . . . . class mimics the behavior of the Main class but gives users a statistics object back.