Question: QUESTION 1 0 In the below code, identify the correct instantiation of a new class object. class Subtract: def init _ ( self , num

QUESTION 10
In the below code, identify the correct instantiation of a new class object.
class Subtract:
def init_(self, num1, num2):
self.num1= num1
self.num2= num2
def calculate_diff(self):
diff = self.num1- self.num2
print (diff)
a. diff1= Subtract ()
b. diff1.calculate_diff (25,10)
c. diffl.calculate_diff()
d. diff1= Subtract (25,10)
 QUESTION 10 In the below code, identify the correct instantiation of

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!