Computer Science, asked by Jana1600, 1 year ago

Can we define an interface inside a Java class?

Answers

Answered by omegads04
0

Only an interface inside a class can be declared private or protected. Sometimes, that makes sense, when the interface is only appropriate for use inside the outer class .

Similar questions