Question: QUESTION 1 0 In the below code, identify the correct instantiation of a new class object. class Subtract: def init _ ( self , num
QUESTION
In the below code, identify the correct instantiation of a new class object.
class Subtract:
def initself num num:
self.num num
self.num num
def calculatediffself:
diff self.num self.num
print diff
a diff Subtract
b diffcalculatediff
c diffl.calculatediff
d diff Subtract
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
