1/7
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
super() Function
No need to use the name of the parent class, it will inherit the methods and properties from its parent automatically.
issubclass (sub, sup) Method
Used to check the relationships between the specified classes. Returns True if the first class is the subclass of the second class, otherwise returns False.
isinstance (obj, class) Method
Used to check the relationship between the objects and class. Returns True if the first parameter, obj, is the instance of the second parameter, class.
Method Overriding
Specific implementation of a parent class method is defined in the child class.
Polymorphism
Refers to the use of a single type entity (method, operator, or object) to represent different types in different situations.
Poly
Greek word that means many.
Morphism
Greek word that means forms.
Operator Overloading
Changing the default behavior of an operator depending on the operands can use the same operator for multiple purposes