methods Flashcards

1
Q

a program module that contains series of statements that carry out a task.

A

Method (to-do)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

to execute a method.

A
  • Calling method –
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

it provides the information about how other methods interact to each other.

A

Method header

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Declaration

A

Method header

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

it contains the statements that carry out the work of the method.

A

Method body

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
  • it is also called Implementation
A

Method Body

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

An empty method is called _____.

A

stub

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

describes the type of data the method sends back to its calling method.

A

Return type

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

A method that returns no data has a return type of ____.

A

void

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

can be any legal identifiers.

A

Identifier or Method Name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

it might contain data to be sent to the method.

A

Parenthesis

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

data items you use in a calling method

A

Arguments

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

method that receives the data items

A

Parameters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
  • If a method receives a parameter, two additional items are required in the parenthesis:
A

parameter type & parameter identifier

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

the type of the method that is returned

A

Method’s type

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

is to visualized the system.

A

Unified Modelling Language or UML –

17
Q

There are 3 parts of UML Class Diagram:

A
  • Class Name
  • Attributes / Variables
  • Operation / methods
18
Q
  • One UML diagram =
A

One java file.