Outline for Chapter 9 Review
From Huben's Wiki
Line 32: | Line 32: | ||
* a variable tracking how many points are created | * a variable tracking how many points are created | ||
* no-args, two arg and copy constructors | * no-args, two arg and copy constructors | ||
− | * a method that adds the two coordinates together | + | * a method named taxicab that adds the two coordinates together into a single real number |
− | * a method that adds two points together | + | * a method named plus that adds two points together to make a new point |
* a toString method that would print like this: (1.3, -2.7) | * a toString method that would print like this: (1.3, -2.7) | ||
* a main that tests all these | * a main that tests all these |