Question on Java

0 like 0 dislike
4 views
How to access protected method if class has only private constructor?
by | 4 views

3 Answers

0 like 0 dislike
This can be done using Java Reflection.
by
0 like 0 dislike
From another class in the same package.
by
0 like 0 dislike
No way. A class with only private constructor cannot be inherited.
by

Related questions

0 like 0 dislike
1 answer
asked Mar 28, 2019 by F1oyd
0 like 0 dislike
1 answer
asked Mar 22, 2019 by Artouiros
0 like 0 dislike
7 answers
110,608 questions
257,186 answers
0 comments
28,858 users