Thursday 27 March 2014

private modifier

Any data, methods and type which is declared as private can't accessible from outside the class.

You can't make class as private, There is no point in making the class as private, A class that no other class can see, and therefore can't be used for anything.

But Java supports private nested classes and inner classes.




Prevoius                                                 Next                                                 Home

No comments:

Post a Comment