Inheritance in Python Single inheritance in python how __init__ function behaves with Inheritance

preview_player
Показать описание
Hello Everyone, Welcome to the Video series on Interesting Topics of Modern Python Programming. In this Python programming tutorial series, I talk about various topics of python including Python Object Oriented Programming.

This video is about inheritance in python and how it works with respect to object oriented programming python. In this video, I've talked mainly about single inheritance in python while touching the topic of multtiple inheritance and the problem that can happen while using the same. I'll create a saperate python tutorial for multiple inheritance in python, but please see this video and this prepares the necessary background work for the better understaind of the concept of inheritance in python.

#python #oop #pythoninheritance #objectorientedprogramming #machinelearning #datascience

ABOUT ME -

I'll primarily create contents on Software Development Ecosystem which will included the following

- Programming Languages
- Machine Learning
- Cloud Computing
- Databases
- Working as a Team
- Requirements Management
- Frameworks and Estimations
- Gamification Techniques

I'm also an explorer by nature and I love to discover and explore things. I'd like to share all those thing which I think is worth sharing.

Last but not the least, I' m a traveler and would like to take you with me on some of the interesting journeys around the world. Believe me there is more to learn outdoors than indoors

Hope you'll join me in my journey 🙏🙏🙏

Рекомендации по теме
Комментарии
Автор

Thank you very much for the concise and clear video. It is better than any book and any video I've watched so far.

lfalfa
Автор

i watched alot of super() tutorials and yours was the one that actually made sense so thank you

cameronearl
Автор

i'm still confused since i can still inherit methods from the base class without using super() in my init. In one or two sentences, can you explain why you would use super() in the subclass init?

kalio
Автор

Looks like you are using Python 3.x Maybe you could put that in the title. I'm looking for (multiple) inheritance under Python 2.x - because that is what is currently being used at work.

saurabhbhairava
Автор

Hi, a quick question about the time point 3:44, while you are creating the class Event, should not the constructor also have def __init__(self, name) there?

machinelearning
Автор

Could you please help me whats the problem in below code -

class First:
def __init__(self, driver):
print("From first - " + driver)
super().__init__(driver)

class Second:
def __init__(self, driver):
print("From Second - " + driver)
super().__init__(driver)


class Combine(First, Second):
def __init__(self, driver):
print("From Combine")
super().__init__(driver)


c = Combine("This is driver")

akdvlog