Introduction
Python is an Object Oriented Programming
language. Classes and Objects are the key features of Object Oriented Programming.
Theoretical 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.
Related Topics
Privacy Policy, Terms and Conditions, DMCA Policy and Compliant
Copyright © 2018-2023 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.