import java.io.*;
class obj_call
{ static int count;
obj_call()
{ count++;
}
}
public class count_obj
{ public static void main(String args[])
{ obj_call e1= new obj_call();
System.out.println("\n Hi, Welcome to Java programming");
obj_call e2= new obj_call();
System.out.println("\n Java is fully OOP's language");
obj_call e3= new obj_call();
System.out.println("\n It provide more security than the c++");
System.out.println("\n No. of objects : "+ obj_call.count);
}
}
Comments
Post a Comment