Empty Class constructor : Class Constructor : Class : Python examples (example source code) Organized by topic

C++
PHP
Python
Python Home »  Class   » [  Class Constructor  ]  Screenshots 
 



Empty Class constructor

class C(object):
    def __init__(self, parameter): pass

x = C.__new__(C, 23)

if isinstance(x, C)
     C.__init__(x, 23)

           
       
Related examples in the same category
1.  Constructors Demo Constructors Demo
2.  A class may define a special method named __init__() A class may define a special method named __init__()
3.  A very simple class with a constructor. A very simple class with a constructor.
4.  A Simple Logger Class A Simple Logger Class
























Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.