I need some understanding... I was under the impression that you could only have one public class declaration in any one class. However I now know that you can have a public class and a public static class declaration....This is rather confusing to me.. anyone want to shed some light as to why this is.?
posted 13 years ago
The public static class would be a class inside the public top-level one, so it doesn't count. It's not like you can rip a nested class out into its own file. The rule only applies to Top-Level not nested classes. [ March 14, 2002: Message edited by: Cindy Glass ]
"JavaRanch, where the deer and the Certified play" - David O'Meara