|
|
@ -22,7 +22,7 @@ class Boat:
|
|
|
|
When a Boat goes to string, the returned value is simply the name of this Boat.
|
|
|
|
When a Boat goes to string, the returned value is simply the name of this Boat.
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
return self.name
|
|
|
|
return self.name
|
|
|
|
def __eq__(self, other):
|
|
|
|
def __eq__(self, other):
|
|
|
|
if other is None:
|
|
|
|
if other is None:
|
|
|
|
return False
|
|
|
|
return False
|
|
|
|
if not isinstance(other, self.__class__):
|
|
|
|
if not isinstance(other, self.__class__):
|
|
|
|