Java OOP GUIDE / WORK DUDE CLASS Topics
TASK –
PART 1 – SETUP Copy the
following Dude class into your IDE.
|
|
TASK – PART 2 – ANALYZING
DUDE a) Inside a
class called DudeTester, create a Dude object. b) Analyze the
Dude class and predict what the value of the instance variables will be
immediately after your object is created.
Then, output the value of each instance variable to see if you were
correct. c) Call the
three instance methods to see how they work.
Analyze the code. Explain how
the coolness instance variable works. |