/PythonOOPConcepts

This repository contains basic examples illustrating concepts of Object Oriented programming with Python. You get to know how to write a class in python, initialize instances, class variables, inheritance in Python, writing getters and setters and the use of @classmethod, @staticmethod, @property and dunder-methods like __repr__, __str__, __len__ and __add__ and implementing a Singleton class in Python

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Python OOP Concepts

This repository contains basic examples illustrating concepts of Object Oriented programming with Python.

You get to know how to the following:

(i)Creating a class in python,

(ii)Initialize and instantiating class instances,

(iii)Using class variables,

(iv)Inheritance in Python,

(v)Writing getters and setters

(vi)The use of @classmethod, @staticmethod and @property

(vii)Dunder-methods: repr, str, len and add

(viii)Singleton class in Python