Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

constructor

public class ConsDemo {
   public static void main(String args[]) {
      MyClass t1 = new MyClass();
      MyClass t2 = new MyClass();
      System.out.println(t1.num + " " + t2.num);
   }
}
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #constructor
ADD COMMENT
Topic
Name
7+3 =