Creating instances of classes
This allows that object to inherit those values contained within the class, making it easier to have consistency regards functionality and data.
What are the benefits of this?
- You only need to create one class that holds all the attributes required.
- That class can be called from anywhere within a program, once an instance of it is created.
- You can update the class, and once completed, those new values will become available to an instance of that class.
- Makes for better management of objects and their properties, not multiple different versions contained within a program
This video covers off
(a) creating an instance of a class
(B) Using the __init__ within the class
(C) define the constructor method __init__
(D) Creating an object that calls a class and uses the class to process some piece of data.