OOP concepts.

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/8

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 2:28 PM on 1/13/25
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

9 Terms

1
New cards

What is a class?

A class is a blueprint for creating objects. It defines methods and attributes that objects created from the class will have.

2
New cards

What is an object?

An object is an instance of a class. It represents a specific entity created using the blueprint provided by the class.

3
New cards

What is instantiation?

Instantiation is the process of creating an object from a class using its constructor.

4
New cards

What is encapsulation?

Encapsulation is the bundling of attributes and methods together within a class and restricting direct access to some attributes to protect them from unintended modification.

5
New cards
What is inheritance?

Inheritance is a mechanism where a child class can inherit attributes and methods from a parent class, allowing code reuse and extension.

6
New cards

What is aggregation?

Aggregation is a type of relationship where one class is associated with another, but the associated object can exist independently of the main object.

7
New cards

What is composition?

Composition is a type of relationship where one class contains another class, and the contained object is dependent on the containing object.

8
New cards

What is polymorphism?

Polymorphism allows objects of different classes to be treated as objects of a common parent class. It can be implemented using method overriding or interfaces.

9
New cards

What is method overriding?

Method overriding occurs when a child class provides a specific implementation of a method already defined in its parent class.