OOP

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall with Kai
GameKnowt Play
New
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/17

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

18 Terms

1
New cards

OOP

A programming paradigm based on the concept of "objects" that contain data (attributes) and functions (methods).

2
New cards

Class

A blueprint for creating objects; defines attributes and methods that its object will have.

3
New cards

Object

An instance of a class; represents a specific entity with state (data) and behavior (methods).

4
New cards

Encapsulation

The bundling of data and methods within a class, restricting direct access to some of the objects components.

5
New cards

Abstraction

The process of hiding complex implementation details and showing only the necessary features of an object.

6
New cards

Inheritance

The mechanism by which one class (child) can acquire properties and behaviors from another class (parent)

7
New cards

Polymorphism

The ability for functions or methods to behave differently based on the object that calls them.

8
New cards

Dynamic binding

The process of linking a function call to the correct function definition at runtime (e.g., virtual functions)

9
New cards

Constructor

A special member function that initializes objects of a class when they are created.

10
New cards

Destructor

A special member function called automatically when an object goes out of scope or is deleted; cleans up resources.

11
New cards

Access specifiers

Keywords that define the visibility of class members: public, protected, and private.

12
New cards

Public

Members are accessible from anywhere in the program.

13
New cards

Private

Members are accessible only within the class itself.

14
New cards

Protected

Members are accessible within the class and by derived classes.

15
New cards

Static member

A class member (data or function) shared by all objects of the class, not tied to any specific instance.Co

16
New cards

Const member function

A member function that cannot modify the object it belongs to; declared with the const keyword.

17
New cards

Friend function

A function that is not a member of a class but has access to its private and protected members.

18
New cards

This pointer

An implicit pointer available inside all non-static memebr functions that points to the calling object.