Given that interfaces are also used to help hide information, giving the user only a subset of the possible methods they are allowed to use, and, let's say, I have a class and interface .
Now in main, I'm allowed to do
So really I'm not restricted from using Person still. So how does the
interface truly hide data?