By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,654 Members | 1,816 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,654 IT Pros & Developers. It's quick & easy.

Initializing a class in a new class

P: 1
What is the purpose of line 7?

1 class NewClass (OldClassFile.OldClass)
3 def __init__(self,variable)
5 (Code for what NewClass does)
7 OldClassFile.OldClass.__init__(self,variable)
Jun 18 '15 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 2.5K+
P: 2,851
Creates an instance of OldClassFile.OldClass with all its associated attributes and methods.
Jun 18 '15 #2

Post your reply

Sign in to post your reply or Sign up for a free account.