Learn Object Oriented Programming in Python 3

This section gives you a brief idea about object oriented programming in Python. So far, we have been using variables to store bits of information, but in a real-life scenario it is impractical since the models are much more complicated and that’s where objects become really important. Objects are a way to describe related sets of information.

Objects can contain random amount and different kinds of data. Every object has a Property and a Method. Properties are basically the variables that are attached to the objects, where as the Methods are functions that belong to an object.

In order to describe these objects, we make use of Classes. Python class provides all standard features of Object Oriented Programming. Likewise that of modules, these classes are created at runtime and can be further modified after creation. Python supports inheritance, which involves subclasses inheriting information and behavioral properties from their parent classes. Now, using a module, we can organize our python code, which makes it easier to understand and use. A module can define functions, classes, variables within and can be included in a runnable code.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.