If you are facing any issue in playing video please use Firefox browser.
Python Classes and Objects
In this lecture we will see that, What is Class and Object ?, How to use them ? & How to delete objects ?
Classes and Objects are important for OOPS concepts and is very first topic for that.
As python is object oriented programming language, so if we want to work through object we need to make class.
Python is an object oriented programming language. Unlike procedure oriented programming, where the main emphasis on functions, object oriented programming stress on objects.
Object is simply a collection of data (variables) and methods (functions) that act on those data. And, Class is a blueprint for the object.
Defining a class in Python
'''This is a docstring. I have created a new class'''
Example of class in Python
"This is my second class"
Creating an Object in Python
The class object could be used to access different attributes like methods, functions, etc...
To call function
Removing an Object in Python
After del ob your object removed from your namespace.
Have a friend to whom you would want to share this course?