Quiz 3 Concepts
(More details will be added soon!)
- Quiz 0-2 Concepts plus:
- CL09 Intro to Object Oriented Programming (Classes)
- Syntax for defining a Class and its methods
- Creating a
Class
- Listing attributes and their types
- Defining a constructor method (
__init__
)
- Defining a method within the class
- Syntax for instantiating a Class and calling methods
- Importing a
Class
and calling its constructor
- Calling methods on an object of a defined
Class
- Accessing attributes of an object of a
Class
(e.g. my_pizza.toppings
)
- CL10 Classes in Memory
- Memory diagram for a Class definition and instantiation
- CL10 Magic Methods
- Syntax for defining and calling a magic method
- Writing a
__str__
magic method
- Diagramming a
__str__
magic method
- Operator Overloads, Default Parameters, + Union Types
- Syntax for defining and calling a magic method that overloads operators
- Writing and Diagramming both
__add__
and __mul__
magic methods
- Writing and Diagramming functions or methods with Default Parameters and Union Types
Contributor(s): Alyssa Byrnes