Monday, February 2, 2015

Java constructor in program



Java constructor


class Programming 
{
  
  Programming() 
{
    System.out.println("Constructor method called.");
  }
 
  public static void main(String[] args) 
{
    Programming object = new Programming(); 
  }
}
 

No comments:

Post a Comment