Adder#
Define a class Adder
with two methods:
A constructor
__init__(self, n)
that takes the numbern
and stores it as a field (you can choose the name).A method
add(self, m)
, that returnsm + n
, i.e., returnsm
plus whatever number was given in the constructor.