1/4
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Object-Oriented Programming (OOP)
A method of structuring a program by bundling related properties and behaviors into individual objects. It models real-world entities as software objects that have some data associated with them and can perform certain operations.
class Keyword
Like an object constructor. A “blueprint” for creating objects.
The — init — function
Present in all classes and executed when class is initiated. Used to assign values to the properties of an object or other operations needed in the creation of an object.
self Parameter
Reference to the current instance of the class and the first parameter of any function in the class.
Methods
Functions that belong to the object and called by the object’s name. Operates the data in a class.