Notes in Python - OOP

To Subscribe, use this Key


Status Last Update Fields
Published 05/03/2024 call a function when a file is run
Published 05/03/2024 define printing
Published 05/03/2024 set up when instance is created
Published 05/03/2024 Class is a ____ with _____ & ____.
Published 05/03/2024 Class is a _______ to make stuff.
Published 05/03/2024 Class has _____ & ______.
Published 05/03/2024 static methods ___
Published 05/03/2024 What is __mro__?
Published 05/03/2024 What is a staticmethod?
Published 05/03/2024 What is inheritance?
Published 05/03/2024 Create an Egg class that has a set and get color methodclass Egg(object):    def __init__(self, weight, color):      self.__w…
Published 05/03/2024 fragile base class
Published 05/03/2024 Encapsulation
Published 05/03/2024 subclassing
Published 05/03/2024 A class is just ________It defines how something should be laid out, but doesn’t actually fill in the________. 
Published 05/03/2024 instances are specific examples of a class,that _________.
Published 05/03/2024 MRO
Published 05/03/2024 super
Published 05/03/2024 Create a class that when called adds n to the base of 
Published 05/03/2024 Refactor to make function (hint: use a closure):class Adder(object):    "A class that creates callable adder instances"    def __i…
Published 05/03/2024 In general, a descriptor is an object attribute with “binding behavior”, one whose attribute access has been ______________.Those methods are ________…
Published 05/03/2024 Create a Car object with @property decorator to set speed
Published 05/03/2024 @staticmethod
Published 05/03/2024 When is a good time to use static methods?
Published 05/03/2024 Refactor code to make runimport functools, operatorclass Math(object):    def product(*nums):        return functools.re…
Published 05/03/2024 Add attribute to existing classclass Car(object):   pass
Published 05/03/2024 Who parent's get called for super?
Published 05/03/2024 what does super really mean?
Published 05/03/2024 MRO
Published 05/03/2024 How is MRO made?
Published 05/03/2024 What is the difference between self and super?
Published 05/03/2024 Given a class, add method 'Hi'class Foo: pass
Published 05/03/2024 Create a new class that subtypes list and addsx = 42def howdy(self, you):    print("Howdy, " + you)
Published 05/03/2024 ABC
Published 05/03/2024 bound method
Published 05/03/2024 Create a deck of cards
Published 05/03/2024 Strategy Design Pattern
Published 05/03/2024 Command design pattern
Published 05/03/2024 What is the goal of class methods in Circle?
Published 05/03/2024 What are classmethods?
Published 05/03/2024 What is the propose of static method?
Published 05/03/2024 What do dunder attributes mean in Python?
Published 05/03/2024 Do you add slots 1st or last? Why?
Published 05/03/2024 Instance variables
Published 05/03/2024 Class variables 
Published 05/03/2024 Regular methods
Published 05/03/2024 Thread local calls
Published 05/03/2024 Class methods
Published 05/03/2024 Static methods
Published 05/03/2024 A property() 
Published 05/03/2024 __slots__
Published 05/03/2024 Classes should have a name that is
Published 05/03/2024 The name of a function should typically be __________.
Published 05/03/2024 If the only purpose of the function is to return a value, the function name ___________.
Published 05/03/2024 What is the primary responsibility of a class constructor?
Status Last Update Fields