can a contructor be declared protected...
posted 7 years ago
If I see correctly, the heading says "can a contructor be declared postive? " . A protected constructor allows the class to be inherited but cannot be instantiated outside of the package. So if a class com.mypackage.MyClass has protected constructor(s), then the MyClass can be inherited but cannot be instantiated outside of com.mypackage package...