Python – Class Inheritance

Class Inheritance is a core feature of Object-Oriented Programming. It allows one class to inherit data or behavior from another class and is one of the key ways in which reuse is enabled within classes. What is Inheritance? Inheritance allows features defined in one class…

Python – Class Attributes

Unlike other programming language like C++, Java – Python classes can hold data and behavior that is not part of an instance or object; instead they are part of the class. Python classes have attributes; these are referred to as class variables or attributes. Python…

Python – Class and Objects

Class and Objects are basic building blocks of Python. It is also a core concept in a style of programming known as Object Oriented Programming (or OOP). Classes allow programmers to specify the structure of an object (i.e. its attributes or fields, etc.) and the…

Python – Functions

What are Functions in Python? In Python functions are groups of related statements that can be called together, typically perform a specific task, and which may or may not take a set of parameters or return a value. Functions can be defined in one place…