Learn classes and objects Python 3


show more Understanding classes and objects provides you with in-depth training on Developer. Taught by Bill Weinman as part of the Python 3 Essential Training show less
please wait ...

Understanding classes and objects

Classes in Python are how you make objects. The classes themselves are the blueprint for how an object is created. For example, here is a class called Duck. And it implements a couple of methods called quack and walk, so that when you create a duck object, that duck will quack like a duck and walk like a duck and that of course will make it a duck. An object is an instance of a class. That means that when you create an object, it's a separate thing.

It's separately encapsulated. It has all of its own attributes. So if you make several different objects from a given class, each of those different instance of the class, but they're all separately encapsulated and have their own data space, their own code space and are essentially their own objects. An object is an instance of a class. That means when you create an object, that object is built from the blueprint of the class, but it's its own object. Its own encapsulation. And so if you create several different objects from the sa...

Understanding classes and objects
Video duration: 5m 12s 6h 36m Beginner

Viewers:

Understanding classes and objects provides you with in-depth training on Developer. Taught by Bill Weinman as part of the Python 3 Essential Training

Subjects:
Developer Web
Software:
Python
Author:
please wait ...