Python Classes vs Objects Explained Simply (Beginner Friendly)

Publicado em: 08 September 2014
no canal de: John Philip Jones
98,868
1.1k

This beginner‑friendly Python tutorial explains the difference between classes and objects using a clear real‑world analogy.

We start by comparing Python classes to building blueprints, and Python objects to the houses created from those blueprints — a simple way to understand how objects are formed, labelled, and stored in memory.

In the video, you’ll learn:

how assignment statements create objects in Python

why objects have an ID, type, and value

how Python uses classes (like int, float, and str) as templates

why different variables can refer to the same object

how Python handles integers, floats, and strings inside the execution space

This tutorial walks through multiple examples step‑by‑step, including:

a = 2 creating an integer object

b = 3 creating a second, different integer object

b = 2 reusing the existing object instead of creating a new one

creating float and string objects such as a = 9.81 and my_string = "spam spam"

A key quote from the video:

“The integer class was the template that allowed the object to be created, but once the object is in the execution space it exists in its own right.”

Perfect for absolute beginners who want to understand Python’s object model clearly and visually. #JohnPhilipJones


Nesta página do site você pode assistir ao vídeo on-line Python Classes vs Objects Explained Simply (Beginner Friendly) duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário John Philip Jones 08 September 2014, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 98,868 vezes e gostou 1.1 mil espectadores. Boa visualização!