AP Computer Science Vocab for Inheritance

0.0(0)
Studied by 29 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/19

flashcard set

Earn XP

Description and Tags

Last updated 6:24 PM on 1/22/24
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

20 Terms

1
New cards

Mutable object

Objects whose state can change after construction.

2
New cards

ArrayList

An array that can grow and shrink on demand, as you add (or remove) elements to the list.

3
New cards

IOException

An error that occurs when you read from a file.

4
New cards

final

A Java keyword that indicates a constant - a variable that cannot be reassigned a new value.

5
New cards

static

Used to describe a method or field/attribute that belongs to the class, not the object; does not require the programmer to instantiate an object in order to reference a method or field in the class.

6
New cards

Wrapper class

A class that wraps a primitive type in an object. These classes contain their corresponding primitive type as an instance variable, but put them into an object for situations where objects are required.

7
New cards

Auto-boxing

When Java automatically converts to an Object (reference) data type.

8
New cards

Unboxing

When Java automatically converts to a primitive data type.

9
New cards

Base class - super class - parent class

The class from which another class inherits properties and methods.

10
New cards

Derived class - Sub class - child class

The class that inherits properties and methods from a base class.

11
New cards

Single inheritance

Every class has 1 and ONLY 1 direct super class.

12
New cards

Polymorphism

The ability of a super class to store a subclass reference.

13
New cards

Variable hiding

When a sub class declares the same variable as its parent class.

14
New cards

Downcast

Casting a superclass to a subclass type.

15
New cards

Override

When a subclass defines the exact same method (in name and parameter list) as a method inherited from a super class.

16
New cards

Overload

Methods that have the same name but different parameter lists.

17
New cards

Super

A keyword that refers to the super-class, and can be used to call a parent class constructor or to call a parent class method.

18
New cards

This

A keyword in Java that refers to whatever object the keyword is found in, this object.

19
New cards

Root Class

The Java class at the top of the Java class hierarchy.

20
New cards

Constructor chaining

Use this() to call other constructors in the same class.