Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java classes and objects

class Dog {
    int age = 5;

    public static void main(String[]args) {

        Dog myObj = new Dog();
        System.out.println(myObj.age);
    }
}
Source by www.allaboutjava.com #
 
PREVIOUS NEXT
Tagged: #java #classes #objects
ADD COMMENT
Topic
Name
7+8 =