Chapt6 2

30 cards

Stephb


 
  
Created Dec 7, 2006
by
guest

 

 
Table View
 
Download
 
Print

Flashcard Set Preview

  Side A   Side B
1
data in an object are known as
 
fields
2
procedures in an object are known as
 
methods
3
an object created from a class is called an __________ of a class
 
instance
4
class ___________ normally have methods that perform useful operations on their data
 
objects
5
________ variables can only store data and have no methods
 
primative
6
Each ______ of the class string contains different data
 
instance the instances aer all share the same design
7
each instance has all of the atributes and methods that were defined in the _______ class
 
string class
8
rectangle object will have the following fields
 
length width
9
Rectangle box = new Rectangle (); the box variable holds the ______ of the recangle object
 
adress
10
methods that retrive the data of the fields are called
 
accessors
11
methods that modify the data of the fields are called
 
mutators setlength setwidth
12
each field that the programmer wishes to be viewed by other classes needs an ________
 
accessor getlength getwidth
13
each feild that the programer wishes to be modifed by other classes needs a
 
mutator
14
________ fields and ______ methods require an object to be created in order to be used
 
instance instance
15
classes can have special methods called
 
constructors
16
classes can have special methods called
 
constructors
17
a __________ is a method that is automatatically called when an object is created
 
constructor
18
________ are used to perform operations at the time an object is created
 
constructors
19
constructors typically ______ instance fields and perform other object initialization tasks
 
initialize
20
constructors have the same name as the _____
 
class
21
__________have no return types, not even void
 
constructors
22
constructors are typically private or public
 
public
23
______ variables can be declared with out being initialized rectangle box; this statement...
 
Reference
24
when an object is created, its constructor is ______ called
 
always
25
if u do not write a constructor, java provides one when the class is compiled this is known...
 
default constructor o false null
26
constructor that does not accept an argument is knwon as a
 
no arg constructor this is what the default constructor is
27
a string literal is used to initialze a string_________
 
object
28
a string literal is used to _____ a string object
 
initialize for instance string name= new String ("michal long"); string name= "michal...
29
two or more methods in a class may have the same name as long as their _______ lists are diff.
 
parameter
30
a method ______ consisst of the methods name and the data types of the methods parameters,...
 
signature


Upgrade and get a lot more done!
Upgrade    Cancel