Home | | Computer Science 12th Std | Python Classes and Objects

Chapter: 12th Computer Science : Chapter 10 : Python Modularity and OOPS : Python Classes and Objects

Python Classes and Objects

Python is an Object Oriented Programming language.

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.

 

Study Material, Lecturing Notes, Assignment, Reference, Wiki description explanation, brief detail
12th Computer Science : Chapter 10 : Python Modularity and OOPS : Python Classes and Objects : Python Classes and Objects |


Privacy Policy, Terms and Conditions, DMCA Policy and Compliant

Copyright © 2018-2023 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.