CS - Classes

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/14

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.

15 Terms

1
New cards

Instantiation

The process of creating an instance (object) from a class in Object-Oriented Programming.

2
New cards

Class

A blueprint for creating objects that groups related variables and methods together.

3
New cards

Object Creation

The act of using a class to create an object based on that class's structure.

4
New cards

Method

A function that is defined within a class, typically operating on instances of that class.

5
New cards

Constructor

A special method in a class (usually named init) that is called when an object is instantiated.

6
New cards

self

A reference to the current instance of the class, allowing access to its attributes and methods.

7
New cards

Attribute

A variable that belongs to a class instance, representing the state or properties of that object.

8
New cards

Instance

A specific realization of a class; an object created from a class.

9
New cards

Encapsulation

The practice of enclosing variables and methods in a class to protect internal states and promote modularity.

10
New cards

Inheritance

A mechanism in OOP where a new class can inherit properties and methods from an existing class.

11
New cards

Polymorphism

The ability to present the same interface for different data types in OOP.

12
New cards

Abstraction

The concept of hiding the complex reality while exposing only the necessary parts in OOP.

13
New cards

Destructor

A method that is called when an object is about to be destroyed; typically named del in Python.

14
New cards

Function Overloading

Defining multiple functions with the same name but different parameters within the same scope.

15
New cards

Composition

A design principle in OOP where a class is composed of one or more objects from other classes.