WAP in java for constructor
Answers
Answered by
19
Example of Constructor program in Java.
class Constructor
{
Constructor()
{
System.out.println("Hello World!!");
}
static void main()
{
Constructor obj = new Constructor();
}
}
Similar questions