Level 97 Level 99
34 words 0 ignored
Ready to learn Ready to review
Check the boxes below to ignore/unignore words, then click save at the bottom. Ignored words will never appear in any learning session.
prototype defining a set of attribute that characterize objects of the class
variable shared by all instances of a class. Defined within a class but outside class's methods
A class variable or instance variable that holds data associated with a class and its objects
the assignment of more than one behavior to a particular function
A variable that is defined inside a method and belongs only to the current instance of a class
the transfer of the characteristics of a class to other classes
An individual object of a certain class
the creation of an instance of a class
A special kind of function that is defined in a class definition
A unique instance of a data structure
the assignment of more than one function to a particular operator
class class_name: statement
the class has a documentation string, which can be accessed via
a special method, which is called class constructor or initialization method that Python calls when you create a new instance of this class
getattr(obj, name[, default])
access the attribute of object
check if an attribute exists or not
setattr(obj, name, value)
set an attribute. If attribute does not exist, then it would be created
delete an attribute
Dictionary containing the class's namespace.
Class documentation string or none, if undefined.
Module name in which the class is defined. This attribute is "__main__" in interactive mode.
A possibly empty tuple containing the base classes, in the order of their occurrence in the base class list.
Destroying Objects (Garbage Collection)
special method called destructor to destroy an instance
Checks a relationships of two classes and instances
returns true if obj is an instance of class Class or is an instance of a subclass of Class
obj = class_name(args)
Instance Constructor (with any optional arguments)
Destructor, deletes an object (obj)
Evaluatable string representation
Printable string representation