Exp 4

*****Exp 4: Concept of constructor******

package exp4;

public class cnst {

cnst()
{
System.out.println("Constructor is called");

}

public static void main(String[] args) {
// TODO Auto-generated method stub

cnst obj= new cnst();

}

}


******OUTPUT*****


Constructor is called

Comments