What is wrong with the following programs?
1 class A:
2 # Construct an object of the class
3 def A(self):
4 radius = 3
(a)
1 class A:
2 # Construct an object of the class
3 def __init__(self):
4 radius = 3
5
6 def setRadius(radius):
7 self.radius = radius
(b)
Sorry the answer is not available at the moment…
If you are able to find the answer, please make sure to post it here. So that your Juniors have smile on their lips and feel happy.
Spread the 'tradition of sharing'.