[Instructions] [Search] [Current] [Changes] [Syllabus] [Handouts] [Outlines] [Labs] [Assignments] [Examples] [Bailey Docs] [SamR Docs] [Tutorial] [API]
Held: Tuesday, January 27, 1998
public boolean equals(Object obj) -- determine whether
another object is the same as the current object.
public int hashCode() -- convert the object to an
integer (the conversion does not need to be undoable) so that
different objects tend to convert to different integers and
equal objects always convert to the same integer.
public String toString() -- convert the object to
a printable representation. This is used whenever (more or less)
you try to use the object as a string (e.g., when you concatenate
it to a string or print it).
implements Cloneable.
public Object clone() -- make a copy of the
current object.
Do lab 2.
On to Control and Inheritance
Back to More on Objects and Classes
Outlines:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Current position in syllabus
[Instructions] [Search] [Current] [Changes] [Syllabus] [Handouts] [Outlines] [Labs] [Assignments] [Examples] [Bailey Docs] [SamR Docs] [Tutorial] [API]
Disclaimer Often, these pages were created "on the fly" with little, if any, proofreading. Any or all of the information on the pages may be incorrect. Please contact me if you notice errors.
This page may be found at http://www.math.grin.edu/~rebelsky/Courses/CS152/98S/home/rebelsky/public_html/Courses/CS152/98S/Outlines/outline.06.html
Source text last modified Tue Jan 12 11:52:17 1999.
This page generated on Mon Jan 25 09:48:47 1999 by SiteWeaver. Validate this page.
Contact our webmaster at rebelsky@math.grin.edu