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 container and other class is content and if you delete the container object then all of its contents objects are also deleted. Composition models a “has a” relationship […]
Introduction:- If you want to understand the python super function, we need to know about Inheritance in Python language. In Python Inheritance, Inheritance is the concept in object-oriented programming in which a class derives (or inherits) attributes and behaviors from another class without needing to implement them again. Click here to read more about Inheritance.
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 inherited by another class (usually called subclass/child class/derived class). The subclass adds some attributes to superclass. In inheritance, the child class acquires the properties and