Composition in Python
Hand pointing with pen to music book with handwritten notes

Composition in Python

What is Composition:- As the name implies , In composition one of the classes is "composed" of one or more instance of other classes. In other words one class is…

Continue Reading Composition in Python

Encapsulation in Python

Introduction Encapsulation is one of the fundamental aspects of Object Oriented Programming. Encapsulation serves to protect the data stored within your objects and provides control and conventions for how you…

Continue Reading Encapsulation in Python

Inheritance in Python

Introduction:- One of the major advantages of Object Oriented Programming is re-use. Inheritance is one of the mechanisms to achieve it. In inheritance, a class (usually called superclass/parent class) is…

Continue Reading Inheritance in Python