Files
freecodecamp--freecodecamp/curriculum/challenges/english/blocks/object-oriented-programming-with-python/classes-objects-video.md
T
wehub-resource-sync dde272c4b8
i18n - Build Validation / Validate i18n Builds (24) (push) Has been cancelled
CI - Node.js / Lint (24) (push) Has been cancelled
CI - Node.js / Build (24) (push) Has been cancelled
CI - Node.js / Test (24) (push) Has been cancelled
CI - Node.js / Test - Upcoming Changes (24) (push) Has been cancelled
CI - Node.js / Test - i18n (italian, 24) (push) Has been cancelled
CI - Node.js / Test - i18n (portuguese, 24) (push) Has been cancelled
CD - Docker - GHCR Images / Build and Push Images (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 11:55:53 +08:00

38 lines
596 B
Markdown

---
id: a0339c4075344cbfc2cd939c
title: Classes and Objects
challengeType: 11
videoId: fR3dh5_MPJs
dashedName: classes-and-objects
---
# --description--
In this video, you will learn how to create classes and objects in Python to write object-oriented programs.
# --questions--
## --text--
What is the role of `def __init__(self):` inside of a class?
## --answers--
It represents a function for calling the method.
---
It specifies the type of the class.
---
It allows a class to inherit methods from another class.
---
It represents an initializer method.
## --video-solution--
4