Computer Science, asked by samruddhi2720, 1 year ago

WAP in java for constructor​

Answers

Answered by anindyaadhikari13
19

Example of Constructor program in Java.

<hr/>

class Constructor

{

Constructor()

{

System.out.println("Hello World!!");

}

static void main()

{

Constructor obj = new Constructor();

}

}

<hr/>

Similar questions