Академический Документы
Профессиональный Документы
Культура Документы
up
Methods
Todays
Subtopic
Quiz
Quiz
7
40
minutes
10
11
Then convert each step in pseudocode to Java code Make sure that your Java code is arranged in a logical manner Compile your code and address any compiler errors Write a test program that tests your method. Such a program is someOmes called a driver TesOng might reveal some problems in your code, so you might need to go back to one of the previous steps
12
Method
Overloading
Two
methods
can
have
the
same
name,
provided
their
signatures
are
dierent
this
is
called
method
overloading
13
14
equals()
method
If
you
are
wriOng
a
method
to
test
whether
two
objects
are
equal,
always
call
the
method
equals
no
other
name
is
acceptable!
(Certain
parts
of
Java
depend
on
using
that
method
to
test
to
equality
between
objects)
15