R
Ray Cassick \(Home\)
I have several classes that has a public interface (nothing really different
there
).
1) I would like to ensure that some classes can only be instantiated by a
specific class type.
2) I would like to restrict some public methods from being called only
from another certain class type.
I was trying to figure out a way that I could do this with attributes but I
am coming up empty.
Any ideas?
there

1) I would like to ensure that some classes can only be instantiated by a
specific class type.
2) I would like to restrict some public methods from being called only
from another certain class type.
I was trying to figure out a way that I could do this with attributes but I
am coming up empty.
Any ideas?