5. Writing Classes

0.0(0)
studied byStudied by 3 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/8

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

9 Terms

1
New cards

Class

A blueprint for an object, where the name should reflect its purpose and variables are declared at the top.

2
New cards

Method

A group of code that performs a specific task, including accessor and mutator methods.

3
New cards

Accessor Methods

Methods that allow access to object data, like getters returning specific data.

4
New cards

toString()

Method returning object information as a string, useful for object representation.

5
New cards

Mutator Methods

Also known as setter methods, used to modify object data.

6
New cards

Static Variables & Methods

Belong to the class itself, accessible without an object, and cannot access instance variables.

7
New cards

Scope

Local scope restricts variable use to a method, while global scope allows access throughout the class.

8
New cards

.this keyword

Refers to the same instance variable within a class.

9
New cards

Algorithm

A step-by-step procedure or set of rules for solving a specific problem or task.