Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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
2+9 =