Hiding default constructor with respect to its access modifiers
This commit is contained in:
committed by
Roman Shevchenko
parent
02fdbec132
commit
2431c0fe94
10
testData/src/pkg/TestPrivateEmptyConstructor.java
Normal file
10
testData/src/pkg/TestPrivateEmptyConstructor.java
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
public final class PrivateEmptyConstructor {
|
||||
|
||||
private PrivateEmptyConstructor() {}
|
||||
|
||||
public final void test() {
|
||||
System.out.println("test");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user