Writing Classes

studied byStudied by 108 people
3.7(3)
Get a hint
Hint

class

1 / 12

13 Terms

1

class

When a group of statements, such as control structures, are all put together to be referred to this

New cards
2

source code

this is the java programming file that hosts the code

New cards
3

method

a block of code that, when called, performs specific actions mentioned in it

New cards
4

driver class

a class in charge of running other classes

New cards
5

object class

the parent classes of all the java classes

New cards
6

header

where you tell Java what value type, if any, the method will return

New cards
7

constructor

a special method used to initalize objects

New cards
8

instance variables(fields)

a variable that is specific to a certain object

New cards
9

return type

the primitive type in which data should return

New cards
10

parameters

the variables listed as a part of the method decleration

New cards
11

precondition

a condition that must be true for your method code to work

New cards
12

postcondition

a condition that is true after the method runs

New cards
13

static

it belongs to the class rather than to a specific instance

New cards

Explore top notes

note Note
studied byStudied by 18 people
... ago
5.0(1)
note Note
studied byStudied by 36 people
... ago
5.0(1)
note Note
studied byStudied by 9 people
... ago
5.0(1)
note Note
studied byStudied by 22 people
... ago
5.0(1)
note Note
studied byStudied by 6 people
... ago
5.0(1)
note Note
studied byStudied by 5 people
... ago
5.0(1)
note Note
studied byStudied by 12 people
... ago
5.0(1)
note Note
studied byStudied by 91 people
... ago
5.0(2)

Explore top flashcards

flashcards Flashcard (54)
studied byStudied by 33 people
... ago
5.0(1)
flashcards Flashcard (166)
studied byStudied by 76 people
... ago
5.0(2)
flashcards Flashcard (30)
studied byStudied by 1 person
... ago
5.0(1)
flashcards Flashcard (30)
studied byStudied by 5 people
... ago
5.0(1)
flashcards Flashcard (135)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (71)
studied byStudied by 3 people
... ago
5.0(1)
flashcards Flashcard (303)
studied byStudied by 15 people
... ago
5.0(1)
flashcards Flashcard (26)
studied byStudied by 20 people
... ago
5.0(2)
robot