Python

Python Inheritance — How To Create a Child Class From the Parent Class?

A friendly discussion about Python class, objects, and inheritance.

--

Image by author

In this tutorial, I will discuss class, objects, and inheritance in Python. After completing this tutorial, one will know about classes and objects in Python. One will be able to answer the following questions: How a class is created in Python? What is inheritance? Why and how do we use inheritance? How to create a child class from the parent class? I hope you will enjoy this post.

If you are new to Python, you can go through the following tutorial.

Classes and Objects

Python is an object-oriented programming language. Object-oriented programming is a form of programming structure that involves grouping related properties (attributes/instance variables) and behaviors (methods) into individual objects.

An object is a collection of properties that can be expressed as attributes and functions. A Class is…

--

--

M Mahfujur Rahman, PhD
Machine Learning and Deep Learning

PhD in Computer Science | I usually write on Artificial Intelligence, Machine Learning, Data Science | Contact me: mahfuj.github@gmail.com