Difference between revisions of "Python:Super"

From GISAXS
Jump to: navigation, search
(Created page with "In object-oriented programming, one must sometimes call upon the parent class or super class. In python, a given object (self) can refer to its parent as: <source lang="pyth...")
 
(Redirected page to Python:Various#Super)
 
Line 1: Line 1:
In object-oriented programming, one must sometimes call upon the parent class or super class.
+
#REDIRECT [[Python:Various#Super]]
 
 
In python, a given object (self) can refer to its parent as:
 
 
 
<source lang="python" line >
 
#!/usr/bin/python
 
# -*- coding: utf-8 -*-
 
 
 
class Cube(Platonic):
 
 
 
    def __init__(self, args={}):
 
        super(Cube, self).__init__( args=args )
 
 
 
</source>
 

Latest revision as of 16:07, 15 October 2014