Object Oriented Programming
I have 2 classes. Class 2 is passed to Class 1 as on object. Class 1 then uses procedures in the object (Class 2). Now you can also use Class 2 directly. E.g. create it before passing it on as an object to the Class 1 object. Now i want to hide some procedures when Class 2 is used directly as some procedures only make sense when called from Class 1.
Both are in the same source file. What options do i have to hide some procedures from Class 2 when used directly but be available when called from class 1.
Thanks for your answers in advance.