Problem Statement - B02B-2019S-C2
class Target: #Line 1 def __init__(self): #Line 2 self.X = 20 #Line 3 self.Y = 20 #Line 4 def Disp(self): #Line 5 print self.X,self.Y #Line 6 def __del__(self): #Line 7 print "Target Moved" #Line 8 def One(): #Line 9 T=Target() #Line 10 T.Disp() #Line 11 One() #Line 12
(i) Write are the methods/functions mentioned in Line 2 and Line 7 specifically known as ?
(ii) Mention the line number of the statement, which will call and execute the method/function shown in Line 2.
Solution
CSKC| Created: 10-Apr-2019 | Updated: 10-Apr-2019|CBSE12A-2019