Ross Group Inc interview question

What are the differences between the public, private and protected visibility modifiers?

Interview Answer

Anonymous

14 Apr 2012

public:data available across all packages and classes. Protected:data available across all the child class within a package. private:data available within class only. Default:data available within the same package.

1