edits...
- Does instantiating a class with an overloaded constructor from main() also call the parameterless constructor?
- Do applications that instantiate a plugin class with an overloaded constructor with plugin.execute() necessarily call the parameterless constructor?
to clarify: I'm expecting one answer for main() and one for plugin.execute() entry points.
class pluginObj {
public pluginObj() {} // default /primary constructor
public pluginObj(int altConst) {} // alternate constructor
public execute() { //... plugin entry code goes here
}
public main() { //... test entry code goes here
}
}
context: class is a plugin for another application, using main() for testing in the short term I know that Junit is the correct way to do this in the long run.