Question: Given the class below, identify the rich comparison method.qquad init _ _ ( self , num 1 , num 2 ) :self.num 1 = num

Given the class below, identify the rich comparison method.qquad init__(self, num1, num2):self.num1= num1self.num2= num2def qquad str__(self): qquadqquad add_(self, other):num1= self.num1+ other.num1num2= self.num2+ other.num2return SumofPairs(num1, num2)a. qquad add qquadb. qquad init qquadC. qquad str qquadd. num3
Given the class below, identify the rich

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 Programming Questions!