I
I
infi2010-11-25 01:28:09
Java
infi, 2010-11-25 01:28:09

Java question

How to refer to a protected method if the class has a single private constructor?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
apangin, 2010-11-25
@apangin

From another class in the same package, you can.

D
Dimonich, 2010-11-25
@Dimonich

No way. A class with a single private constructor cannot be inherited.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question