dot_class
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| dot_class [2022/09/15 09:34] – frchris | dot_class [2022/09/15 09:48] (current) – [Dot class] frchris | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| Extreme programming refers to the wise tradition to write the code that tests your new object before you actually write the new object. | Extreme programming refers to the wise tradition to write the code that tests your new object before you actually write the new object. | ||
| - | Here is a link to making a Dot class starting with making a tester. | + | Here is a [[http:// |
| + | |||
| + | Below is a full fledged Graphics application that was based on a generic [[https:// | ||
| <code java DotTester.java> | <code java DotTester.java> | ||
| Line 107: | Line 109: | ||
| ====Dot class==== | ====Dot class==== | ||
| - | Here is a bit of starter code to same you time, but feel free to write this from scratch! | + | Here is a bit of starter code to save you time, but feel free to write this from scratch! |
| <code java Dot.java> | <code java Dot.java> | ||
| Line 144: | Line 146: | ||
| } | } | ||
| </ | </ | ||
| + | |||
| + | Things to do: | ||
| + | - Write a two parameter constructor | ||
| + | - Write a method that returns a random number that is in the range of '' | ||
| + | - Write a method that returns a random Color | ||
| + | - Write a method that will draw itself on a '' | ||
| + | - Write a '' | ||
| + | - Write overload your constructor a few times | ||
| + | |||
dot_class.1663248877.txt.gz · Last modified: 2022/09/15 09:34 by frchris