till now i understood that a top level class cant be private means any class that contains "MAIN" method cannot be private.
see the following code:
private class Base{} public class Vis { transient int iVal; public static void main(String elephant[]) { } } when this code is compiled syaing that the class "Base" can not be private. a top level class cant be private means any class that appears at first cant be private?
Remko Strating
Ranch Hand
Joined: Dec 28, 2006
Posts: 893
posted
0
For classes there can only be the public or default access