摘要:
Anonymous ClassesAnonymous classes enable you to make your code more concise. They enable you to declare and instantiate a class at the same time. The... 阅读全文
posted @ 2015-12-25 16:28
gyt929458988
阅读(468)
评论(0)
推荐(0)
摘要:
Nested ClassesThe Java programming language allows you to define a class within another class. Such a class is called anested classand is illustrated ... 阅读全文
posted @ 2015-12-25 11:19
gyt929458988
阅读(1721)
评论(0)
推荐(0)
摘要:
Static Inner Classes Consider the following Java code fragment: public class A { int y; public static class B { int x; void f () {} } } This fragment 阅读全文
posted @ 2015-12-25 10:30
gyt929458988
阅读(1334)
评论(0)
推荐(0)
浙公网安备 33010602011771号