Java Games: Flashcards, matching, concentration, and word search.

Java Chapter 8 Review 2

AB
privatewithout the use of public or (this) declaration, access to data and methods is available to methods of the same class and other classes.
privatethis type of data or methods is restricted to methods of teh same class
publicavailable to methods of the same or other classes
greaterthe use of private in a class declaration creates this type of program reliablity
constructorused to initialize class data and call other methods if they are necessary to construct a new object.
data___ attributes and some helper methods should be declared private
methods___ should be declared public only
statica class method requires this
object___ method requires using teh keyword new
private___ method can never be a constructor,a helper method, and only be used within its own class
public___ method can be accessed by members of the same class
void____ method can also be a(n) static method,public method, and private method
return___ method indicates the data type of the return value and uses the keyword return.
default constructorno-parameter method, which is called automatically during instantiation of a new object
parameter constructora parameter method, which is called automatically during the instantiation of a new object


Mrs. Brooks

This activity was created by a Quia Web subscriber.
Learn more about Quia
Create your own activities