Home
Explore
Exams
Search for anything
Login
Get started
Home
Unit_4_Part_2_Writing Classes
Unit_4_Part_2_Writing Classes
0.0
(0)
Rate it
Studied by 0 people
Learn
Practice Test
Spaced Repetition
Match
Flashcards
Card Sorting
1/11
There's no tags or description
Looks like no tags are added yet.
Study Analytics
All
Learn
Practice Test
Matching
Spaced Repetition
Name
Mastery
Learn
Test
Matching
Spaced
No study sessions yet.
12 Terms
View all (12)
Star these 12
1
New cards
Method Declaration
Specifies the code that will be executed when the method is invoked.
2
New cards
Method Header
Begins a method declaration and includes the method name, return type, and parameter list.
3
New cards
Return Type
Indicates the type of value that a method sends back to the calling location.
4
New cards
Void Return Type
Indicates that a method does not return a value.
5
New cards
Local Data
Variables declared inside a method, created each time the method is called and destroyed when finished.
6
New cards
Formal Parameters
Parameters specified in the method declaration that receive actual parameters during invocation.
7
New cards
Driver Program
A program that drives the use of other parts of a program, often used for testing.
8
New cards
Account Class
Represents a bank account with basic services like deposit and withdrawal.
9
New cards
Constructor
A special method that initializes objects and has no return type.
10
New cards
Deposit Method
Adds a specified amount to the account balance and returns the new balance.
11
New cards
Withdraw Method
Withdraws a specified amount from the account, applies a fee, and returns the new balance.
12
New cards
Add Interest Method
Calculates and adds interest to the account balance, returning the new balance.