5. Writing Classes

studied byStudied by 3 people
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 8

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

9 Terms

1

Class

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

New cards
2

Method

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

New cards
3

Accessor Methods

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

New cards
4

toString()

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

New cards
5

Mutator Methods

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

New cards
6

Static Variables & Methods

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

New cards
7

Scope

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

New cards
8

.this keyword

Refers to the same instance variable within a class.

New cards
9

Algorithm

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

New cards
robot