I understand that if I were to use a private access modifier, for example:
namepsace MyNameSpace
{
class Book
{
private string title;
}
}
Then this means that the instance variable title would only be accessible from within the class i.e the Book class in the above example.
However, if I were to make the instance variable public, I have read that this makes it accessible to outside of the class.
My question is, does this also mean it is accessible outside of the namespace? Or are we still talking about the classes within the namespace? I couldn't find any resource that answered this question of mine hence thought to ask here.