Hi there!
My java assignment says to add code to the Driver class that will:
a. Create an instance of the Game class
b. Use that object to call play( )
Any help on how exactly to do this?
I'm a real java dummy..
Thanks for reading!
Printable View
Hi there!
My java assignment says to add code to the Driver class that will:
a. Create an instance of the Game class
b. Use that object to call play( )
Any help on how exactly to do this?
I'm a real java dummy..
Thanks for reading!
Hello!
This is how you do it:
1. Create an object.
Creating Objects (The Java™ Tutorials > Learning the Java Language > Classes and Objects)
2. Call a method.
Using Objects (The Java™ Tutorials > Learning the Java Language > Classes and Objects)
Have fun!