Join us and get access to hundreds of tutorials and a community of expert Pythonistas.

Unlock This Lesson

This lesson is for members only. Join us and get access to hundreds of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Hint: You can adjust the default video playback speed in your account settings.
Sorry! Looks like there’s an issue with video playback 🙁This might be due to a temporary outage or because of a configuration issue with your browser. Please see our video player troubleshooting guide to resolve the issue.

Inheritance Example and Course Conclusion

Give Feedback

In this lesson you’ll see more OOP inheritance examples. We’ll conclude this course with a recap of what you learned.

Comments & Discussion

Thanks. Well paced and a nicely gentle introduction to OOP. At least it is gentle if you already have the basic concepts and are treating this as a refresher :-)

Jordan Rowland on March 23, 2019

Great videos. I found my understanding of OOP was really solidified when working with SQLAlchemy for a Flask project, and having Post and User classes.

Aditya Mahapatra on March 24, 2019

Will you be doing a follow-up series which delves into multiple inheritance, encapsulation and polymorphism? I hope you do! Good job on the intro to OOP :)

Sohil on March 26, 2019

Very good intro to OOP in python.

Vincenzo Fiorentini on March 27, 2019

Very good intro even for a complete beginner. Sweet and to the point !

DaveCarlson on March 27, 2019

This was well presented and helpfu. Thanks!

Edgar Isai on March 30, 2019

Really good introductions, i got all the concepts, its easy to follow. Thanks.

Kyle on May 6, 2019

Very good introduction!

terrymiddleton on May 20, 2019

excellent intro.

elmorem on July 29, 2019

I would love to see another series of videos that explains the next level of complexity. How about a series explaining some of the fundamental ‘dunder’ methods? Videos were clear and concise. very … pythonic.

marktripney on Aug. 14, 2019

Very good - thanks! I’ve been using classes without really having a good understanding of them. This course helped a great deal.

sspwin on Aug. 29, 2019

Good one…can you please cover session 2 on Abstraction, encapsulation and polymorphism and some advance topics on OOPs. Thank you.

Jean Ferreira on Sept. 5, 2019

Very good videos. I started learning the concepts of OOP programming at university, but I needed a more visual way to understand the concepts. Thanks!

malcolmgandrews on Oct. 1, 2019

Nice series of tutorials, great pace and clarity.

eduartef on Nov. 10, 2019

Thank you so much, really helpful for beginners.

fjavanderspek on Nov. 25, 2019

Great course, clear and concise, with poignant examples! 10/10 honestly, wouldn’t know what to improve

projnabrataseth07 on Nov. 26, 2019

Indeed a superb explanation .

Silver on Dec. 7, 2019

Awesome intro!

Dev on Dec. 7, 2019

Very easy to follow. Keep up the great work.

profbiyi on Dec. 10, 2019

Thanks for this. I so much love this.

Very neat and simplified,thanks

Pucho on Jan. 6, 2020

5 stars

tsusadivyago on Jan. 6, 2020

finally I understood classes

mnemonic6502 on Jan. 18, 2020

Despite some nitpicking on mental example context switching and some assumptions made in explanations, this was a better tutorial than most for general consumption on youtube!

Yes, would definitely like to see expanded OOP tutorials moving forwards, in particular passing data dynamically into objects.

chuahengwee on Jan. 22, 2020

really good…tks for the great content

swapnilc17 on Feb. 9, 2020

Nice introduction to OOPS

Thomas on Feb. 13, 2020

Awesome, I like your enthusiasm

Lokman on Feb. 28, 2020

Hi @Austin Cepalia, since class Baby inherit class Person. Why init(self) doesn’t show result to Child class same as Parent class?

>>> I am Steve and 7 years old. # class Person
>>> I am Ian and 1 years old. # class Baby(Person)

Thanks for the video tutorial, I get already the concept and need to practice more about OOP.

horacionesman on March 15, 2020

I have been trying to understand OOP for a while and this is the first tutorial in which I’ve started feeling I know what is all about! Thanks!

markthiele on March 17, 2020

Thanks!

koellingh on March 28, 2020

I am trying to write a class that takes in an instance of another class in the constructor method. For context, here is how I am trying to do this:

class Family: def init(self, lastname, member_count, hair_color): self.lastname = lastname self.member_count = member_count self.hair_color = hair_color

class Person(Family): def init(self, Family(lastname, member_count, hair_color), name, gender, age): self.name = name self.gender = gender self.age = age self.Family() = Family()

I am getting an invalid syntax error pointed towards my Family instance variable in by Person constructor. How can I effectively pass in instance of a class as a constructor variable in another class?

koellingh on March 28, 2020

Shoot, my code did not come in well. Here it is:

class Family:
    def __init__(self, lastname, member_count, hair_color):
        self.lastname = lastname
        self.member_count = member_count
        self.hair_color = hair_color

class Person(Family):
    def __init__(self, Family(lastname, member_count, hair_color), name, gender, age):
        self.Family() = Family()
        self.name = name
        self.gender = gender
        self.age = age

eshivaprasad on April 24, 2020

Thanks, Excellent introduction.

Aparna on April 25, 2020

Excellent!! Crisp and simplistic way of explaining the most confusing terminologies

yanzaripov on April 26, 2020

excellent stuff, thank you sir!

zbigniewsztobryn on May 1, 2020

Its great how you picture parent and child class. Baby needs a nap(), brilliant! (: Well explained

Wiggers on May 1, 2020

Yes inhertance finally understood thank you

Timm Carson on May 13, 2020

This was very helpful, thanks

sroux53 on May 14, 2020

Excellent!

Become a Member to join the conversation.