Classes and Objects Flashcards
Constructor
Special method named __init__ in a class that is automatically called when an object is created. Used for initializing instance variables.
Instance Variable
A variable that is bound to an instance of a class.
Method
A function defined within a class.
Parameter
A variable in a method definition that is used to pass information into a method.
Return
The keyword used in a method to indicate the value that the method should return when it is called.
Used to display messages or values on the console.
Snake Case
Naming convention where words are separated by underscores, e.g., test_recycling_scheme.
Camel Case
Naming convention where words are joined without spaces, and each word, except the first, starts with a capital letter, e.g., testRecyclingScheme.
Instance:
An individual occurrence of an object created from a class.
IDE (Integrated Development Environment):
Software that provides comprehensive facilities to programmers for software development. Like VS Code