initializer

Multiple constructors: the Pythonic way?

Multiple constructors: the Pythonic way? Question: I have a container class that holds data. When the container is created, there are different methods to pass data. Pass a file which contains the data Pass the data directly via arguments Don’t pass data; just create an empty container In Java, I would create three constructors. Here’s …

Total answers: 7