Files
freeCodeCamp/curriculum/challenges/english/blocks/object-oriented-programming-with-python/classes-objects-video.md
2026-03-17 13:16:49 +01: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