I have no ideas now, Can someone give me a hand ?
Thanks,
package com.codegym.task.task15.task1523;
/*
Overloading constructors
*/
public class Solution {
int number ;
double d;
char c;
String s;
public Solution(int i)
{
this.number = i;
}
protected Solution(double d)
{
this.d = d;
}
Solution(char c)
{
this.c=c;
}
private Solution(String s)
{
this.s=s;
}
public static void main(String[] args) {
}
}