True or False: In Python OOP, we can only define object/instance variables in the method __init__().
What will happen for the following code?
class A:
def __init__(self, s):
self.s = s
def print(self):
print(self.s)
a = A("Welcome")
a.print()
A. The program has an error because class A does not have a constructor.
B. The program has an error because class A should have a print method print(self, s).
C. The program has an error because class A should have a print method print(self.s).
D. The program would run if you change print(s) to print(self.s).