1. Add function¶
Ad hoc polymorphism ‘add’ function
Parameters |
Type |
Description |
p |
Point |
The second operand as Point |
1.1. Returns¶
- Point
The translated point.
1.2. Examples¶
>>> a=Point(1,1,1)
>>> b=Point(2,2,2)
>>> print(a+b)
( 3.0 , 3.0 , 3.0 )
printed