In the second part of Classes you’ll learn that inheritance
can simplify the creation of classes that are related to each other, and you'll
learn to use instances of one class as attributes in another class to keep
each class simple.
You will be taught how to store classes in modules and import classes you need
into the files where they’ll be used. This way you can keep your projects organised.
What are Classes?
Object-oriented programming is one of the
most effective approaches to writing software.
In object-oriented programming you
write classes that represent real-world things
and situations, and you create objects based on these
classes. When you write a class, you define the general
behaviour that a whole category of objects can have.
Click the link below for Part 1:
• #9. Python Classes Part 1 || Instances || ...
▬▬▬▬▬▬ T I M E S T A M P S ⏰ ▬▬▬▬▬▬
00:20 - Introduction / Recap
01:10 - Inheritance
02:05 - The __init__() Method for a Child Class
06:55 - Defining Attributes and Methods for the Child Class
09:45 - Overriding Methods from the Parent Class
11:05 - Instances as Attributes
17:00 - Modelling Real-World Objects
19:00 - 1st Set of Challenges
19:15 - Answers of the 1st Set of Challenges
31:40 - Importing Classes
35:15 - Storing Multiple Classes in a Module
36:56 - Importing Multiple Classes from a Module
38:35 - Importing an Entire Module
39:25 - Importing All Classes from a Module
40:40 - Importing a Module into a Module
43:08 - Finding Your Own Workflow
43:45 - 2nd Set of Challenges
43:58 - Answers of the 2nd Set of Challenges
50:09 - Summary
51:05 - Introducing Files and Exceptions (Next topic)
51:33 - Wrap up
Key main topics covered:
1) Inheritance
2) Defining Attributes and Methods for the Child Class
3) Methods from the Parent Class
4) Importing Classes
5) Storing Multiple Classes in a Module
Click the PayPal Donate Link below to support my YouTube channel, if you have found these videos helpful with your studies:
https://www.paypal.com/donate/?hosted...
Don't forget to subscribe for more!
Instagram:https://www.instagram.com/tutoringaib...
Facebook: / tutoringaibest
#program #programmers #programming #programmer #codeuniverse #peoplewhocode #technology #beautyoftechnology #minimalism #javascript #softwareengineer #pythonlearning #computerscience #coder #python3 #pythoncode #pythonprogramming #GCSE #Coding #Alevels #binary #networks #lists