Initializing a class in a new class

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stuabs19
    New Member
    • Jun 2015
    • 1

    Initializing a class in a new class

    What is the purpose of line 7?

    1 class NewClass (OldClassFile.O ldClass)
    2
    3 def __init__(self,v ariable)
    4
    5 (Code for what NewClass does)
    6
    7 OldClassFile.Ol dClass.__init__ (self,variable)
  • bvdet
    Recognized Expert Specialist
    • Oct 2006
    • 2851

    #2
    Creates an instance of OldClassFile.Ol dClass with all its associated attributes and methods.

    Comment

    Working...