Inheritance/Polymorphism in Object Oriented Programming | Python for Beginners | Code with Kylie #10
12:49

Video Preview

Inheritance/Polymorphism in Object Oriented Programming | Python for Beginners | Code with Kylie #10

Kylie Ying 90K views Sep 21, 2020

Download high quality YouTube thumbnails from Inheritance/Polymorphism in Object Oriented Programming | Python for Beginners | Code with Kylie #10 instantly.

Thumbnail Quality

Choose thumbnail resolution below.

Inheritance/Polymorphism in Object Oriented Programming | Python for Beginners | Code with Kylie #10

MAXRESDEFAULT

JPG

Download
Inheritance/Polymorphism in Object Oriented Programming | Python for Beginners | Code with Kylie #10

SDDEFAULT

JPG

Download
Inheritance/Polymorphism in Object Oriented Programming | Python for Beginners | Code with Kylie #10

HQDEFAULT

JPG

Download
Inheritance/Polymorphism in Object Oriented Programming | Python for Beginners | Code with Kylie #10

MQDEFAULT

JPG

Download
Inheritance/Polymorphism in Object Oriented Programming | Python for Beginners | Code with Kylie #10

DEFAULT

JPG

Download

Video Information

We are LEVELING UP our object oriented programming. Once you start creating objects in Python using classes, you can step up your OOP game by incorporating inheritance and polymorphism!

Inheritance is when you can create child classes that inherit attributes and functions from the parent. These are often used when you have a more general overarching class but want to define more specific classes that may be similar but not quite the same. We do this in order to avoid copy-and-pasting a gazillion times.

In this video, we use dogs as an example of how inheritance can be used. I demonstrate how to create a parent class (superclass) and child class (subclass), and initialize both of them.

We can also have multiple inheritance, which is when a subclass can have multiple parents and inherits the unique functions and attributes of both of them. An example is a golden doodle!

Polymorphism is related to inheritance. Polymorphism means taking many forms. In OOP, this is often related to subclasses that override the parent method so that the more specific class might follow a different set of instructions. In my example, I use different barks of different breeds of doggos.

In practical terms, I've used this in past projects to account for the slight differences in the subclasses. For example, if we are calculating cost of an object, maybe one subclass is set in the US, and another class is specific to France.. we would use the subclass to change from dollars to euros in the France subclass and add an extra layer. We could do this with if-statements, but they might grow repetitive and confusing. Polymorphism is a cleaner way to implement something like this.

Relevant links for more:
https://thepythonguru.com/python-inheritance-and-polymorphism/
Inheritance vs polymorphism - https://www.geeksforgeeks.org/difference-between-inheritance-and-polymorphism

Feel free to leave any questions.

Please consider subscribing if you liked this video: https://www.youtube.com/c/ycubed?sub_confirmation=1

Thanks for watching everyone!
~~~~~~~~~~~~~~~~~~~~~~~~
Follow me on Instagram: https://www.instagram.com/kylieyying
Follow me on Twitter: https://www.twitter.com/kylieyying
Check out my website: https://www.kylieying.com

Related Videos

Popular Videos

Python OOP Deep Dive – Inheritance & Polymorphism Explained
14:32

Python OOP Deep Dive – Inheritance & Polymorphism Explained

Code with Gunnar

3K views 1 year ago
Using Classes and Objects in Python | Learning Python for Beginners | Code with Kylie #9
15:51

Using Classes and Objects in Python | Learning Python for Beginners | Code with Kylie #9

Kylie Ying

39K views 5 years ago
Composition Is Better Than Inheritance in Python
23:29

Composition Is Better Than Inheritance in Python

ArjanCodes

285K views 5 years ago
super/MRO, Python's most misunderstood feature.
21:07

super/MRO, Python's most misunderstood feature.

mCoding

237K views 4 years ago
How to Write Python That Feels Like Python
26:39

How to Write Python That Feels Like Python

ArjanCodes

164K views 7 months ago
the true reason C++ always wins
14:02

the true reason C++ always wins

LaurieWired

775K views 4 weeks ago
OOP Class Inheritance and Private Class Members - Python for Beginners!
16:12

OOP Class Inheritance and Private Class Members - Python for Beginners!

Python Simplified

147K views 4 years ago
Object Oriented Programming (OOP) in Python
46:37

Object Oriented Programming (OOP) in Python

Traversy Media

294K views 5 years ago
Python OOP Will Finally Make Sense After This
27:05

Python OOP Will Finally Make Sense After This

myCodeVerse

30K views 4 months ago
What is Polymorphism in Python?
7:38

What is Polymorphism in Python?

Indently

28K views 1 year ago
Python Classes, Objects, Inheritance & Polymorphism for Beginners
19:32

Python Classes, Objects, Inheritance & Polymorphism for Beginners

Dave Gray

32K views 3 years ago
Object Oriented Programming (OOP) in C++ Course
1:30:26

Object Oriented Programming (OOP) in C++ Course

freeCodeCamp.org

3.1M views 5 years ago
How to Use Variables | Python for Beginners Lesson 2 | Code with Kylie
17:43

How to Use Variables | Python for Beginners Lesson 2 | Code with Kylie

Kylie Ying

8.4K views 3 years ago
Python OOP Tutorial 4: Inheritance - Creating Subclasses
19:40

Python OOP Tutorial 4: Inheritance - Creating Subclasses

Corey Schafer

1.4M views 9 years ago
Object-Oriented Programming
29:02

Object-Oriented Programming

Brian Will

753K views 13 years ago
Using Functions in Python | Learning Python for Beginners | Code with Kylie #7
12:31

Using Functions in Python | Learning Python for Beginners | Code with Kylie #7

Kylie Ying

68K views 5 years ago
Loops: Use-cases and Examples | Python for Beginners Lesson 7 | Code with Kylie
13:00

Loops: Use-cases and Examples | Python for Beginners Lesson 7 | Code with Kylie

Kylie Ying

9.7K views 3 years ago
While Loops and For Loops in Python | Learning Python for Beginners | Code with Kylie #6
11:02

While Loops and For Loops in Python | Learning Python for Beginners | Code with Kylie #6

Kylie Ying

142K views 5 years ago
Explaining Python Data Types and Operators | Learning Python for Beginners | Code with Kylie #2
12:47

Explaining Python Data Types and Operators | Learning Python for Beginners | Code with Kylie #2

Kylie Ying

16K views 5 years ago
Learn Python OOP in under 20 Minutes
18:32

Learn Python OOP in under 20 Minutes

Indently

596K views 1 year ago

Download HD YouTube Video Thumbnails

Inheritance/Polymorphism in Object Oriented Programming | Python for Beginners | Code with Kylie #10 thumbnail images are available in multiple resolutions including HD, Full HD, SD, and maximum resolution depending on the original uploaded image quality.

TubeSnap helps users instantly preview and download YouTube thumbnail images without watermark, registration, or software installation. All thumbnails are fetched directly from publicly accessible YouTube image servers.

YouTube thumbnails are widely used by bloggers, designers, marketers, content creators, and publishers for article previews, social media posts, presentations, and content inspiration.

The downloader supports thumbnails from gaming videos, music videos, tutorials, livestreams, interviews, podcasts, documentaries, educational videos, sports highlights, and viral YouTube uploads.

Users can access thumbnail downloads on desktop computers, tablets, and smartphones with fast loading performance and multilingual support.

How to Download YouTube Thumbnails

Paste a YouTube video URL into the search field and TubeSnap will instantly generate downloadable thumbnail resolutions for the selected video.

Supported Thumbnail Resolutions

TubeSnap supports default, medium quality, high quality, standard definition, and maximum resolution YouTube thumbnails whenever available from the original video source.

Free Online Thumbnail Extractor

The platform works entirely online without registration, extensions, software downloads, or hidden limitations.