class ConstOver
{
ConstOver()
{
System.out.println("I am Human");
}
ConstOver(int a)
{
System.out.println("I am Human"+" "+a);
}
ConstOver(int a,int b)
{
int c=a+b;
System.out.println("I am Human"+" "+c);
}
ConstOver(String s)
{
System.out.println("I am Human"+" "+s);
}
public static void main(String ar[])
{
new ConstOver();
new ConstOver(1);
new ConstOver(1,1);
new ConstOver("Om");
}
}
No comments:
Post a Comment