Introduction
Python is an Object Oriented Programming language. Classes and Objects are the key features of Object Oriented Programming. Th eoretical concepts of classes and objects are very similar to that of C++. But, creation and implementation of classes and objects is very simple in Python compared to C++.
Class is the main building block in Python. Object is a collection of data and function that act on those data. Class is a template for the object. According to the concept of Object Oriented Programming, objects are also called as instances of a class or class variable. In Python, everything is an object. For example, all integer variables that we use in our program is an object of class int. Similarly all string variables are also object of class string.
VIDEO LINK:
12 STD || PYTHON CLASSES AND OBJECTS || PART-2
YOUTUBE LINK:
Tweet |
No comments:
Post a Comment
உங்கள் கருத்துகளை சொல்லுங்கள்