Suppose I have three declared classes:
A, B, C
Class A
must be instantiated only in class B
.
Is there a way to specify in itself that class A
should only be instantiated in class B
(via constructor for instance) and not in other classes?