Implement checkPublicParameterlessConstructor that returns true if the provided class declares public parameterless constructor and false otherwise.
Creating instances
Constructor Checker
Report a typo
Write a program in Java 17
/**
Check whether the class declares public parameterless constructor
*/
class ConstructorChecker {
public boolean checkPublicParameterlessConstructor(Class<?> clazz) {
// Add implementation here
}
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.