Unit 12- OOP

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

1/16

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 4:05 PM on 6/24/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

17 Terms

1
New cards

Class

Blueprints for creating objects where they each have attributes and behaviours

2
New cards

Objects

Instance of a class

3
New cards

Methods

4
New cards

Attributes

5
New cards

Inheritance

Inheriting attributes and methods from the parent class

6
New cards

Encapsulation

Prevents certain data from being changed/overridden in the program

7
New cards

Polymorphism

Making a method behave differently for a different subclass

8
New cards

Instantiation

Creating a new object from a class

9
New cards

Public

Access to all code (+)

10
New cards

Protected

Access to members of the same class and child class. (#)

11
New cards

Private

Access to only members of the same class. (-)

12
New cards

Aggregation

When an object is destroyed, the other objects inside won't be destroyed.

13
New cards

Composition

When an object is destroyed, the other objects inside will also be destroyed.

14
New cards

Example of Composition

If we have a school and inside that classrooms. If we destroy the school, the classrooms won't exist

15
New cards

Example of Aggregation

If we have a coach and a player, if the coach is destroyed the player will remain

16
New cards

Overriding

It overrides a method, changing how it behaves

17
New cards

Polymorphism - Method Overloading

Class contains methods of the same name that have different parameters