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