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
Computer Science,
6 months ago
English,
6 months ago
Hindi,
6 months ago
Science,
11 months ago
Math,
11 months ago
History,
1 year ago
Environmental Sciences,
1 year ago