Writing Classes

3.7(3)
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/12

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

13 Terms

1
New cards
class
When a group of statements, such as control structures, are all put together to be referred to this
2
New cards
source code
this is the java programming file that hosts the code
3
New cards
method
a block of code that, when called, performs specific actions mentioned in it
4
New cards
driver class
a class in charge of running other classes
5
New cards
object class
the parent classes of all the java classes
6
New cards
header
where you tell Java what value type, if any, the method will return
7
New cards
constructor
a special method used to initalize objects
8
New cards
instance variables(fields)
a variable that is specific to a certain object
9
New cards
return type
the primitive type in which data should return
10
New cards
parameters
the variables listed as a part of the method decleration
11
New cards
precondition
a condition that must be true for your method code to work
12
New cards
postcondition
a condition that is true after the method runs
13
New cards
static
it belongs to the class rather than to a specific instance