d2-d3 - OOPS Pillars and Java Classes

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

1/13

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 4:43 PM on 4/19/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

14 Terms

1
New cards

inheritance

polymorphism

encapsulation

abstraction

four pillars of OOP

2
New cards

inheritance

allows a new class (child) to inherit the properties of an existing class (parent), promoting code reuse

3
New cards

polymorphism

ability of an object to take on many forms, eg. shape can be circle or square

4
New cards

enscapsulation

hiding internal data by using access modifiers like private and public to protect integrity

5
New cards

abstraction

hiding complex implementation details and showing only the necessary features to users

6
New cards

superclass

the existing class being inherited from

7
New cards

subclass

the new class that inherits the features

8
New cards

inheritance

allows a subclass to acquire the methods and fields of a superclass

9
New cards

polymorphism

means “many forms” it occurs when different classes are related by inheritance but perform the same action in different ways

10
New cards

encapsulation (data protection)

is the bundling of data (fields) and the methods that operate on that data into a single unit or class, used for data hiding to keep vars safe from outside inheritance

11
New cards

true data hiding

achieved by making fields private and providing public getter and setter methods to control access

12
New cards

method

a block of code that performs a specific task and only runs when it is called

13
New cards

standard library methods ( - built in methods like touppercase)

user-defined methods (- created by the programmer)

types of methods

14
New cards

method definition

method call

parameter passing

execution

return value

method flow visualization