View RSS Feed

Java Object

Object-oriented programming in Java.

  1. Nested Classes

    by , 04-26-2012 at 04:56 PM
    A class can be defined without other class by the Java programming language. Suck kind of class is known as nested class, which has been illustrated below:
    Java Code:
    class OuterClass {
        ...
        class NestedClass {
            ...
        }
    }
    
    class OuterClass {
        ...
        static class StaticNestedClass {
            ...
        }
        class InnerClass {
            ...
        }
    }
    Enclosing class ...
    Categories
    Tutorial