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
Social Sciences,
6 months ago
India Languages,
6 months ago
Hindi,
6 months ago
Science,
1 year ago
Math,
1 year ago
History,
1 year ago
Environmental Sciences,
1 year ago