main class->>>
public class scoreMain { public static void main(String[] args) { // Football Score board Score scoreObject = new Score(); Score scoreObject1 = new Score(1); Score scoreObject2 = new Score(1,2); Score scoreObject3 = new Score(1,2,3); } } and constructor class -->>>
public class Score { public void Score() { Score(0,0,0); } public void Score(int x) { Score(x,0,0); } public void Score(int x,int y) { Score(x,y,0); } public String Score(int x,int y,int z) { Score(x,y,z); return String.format("%d/%d%d",x,y,z); } } but it shows error when creating objects ... the constructor score(int) is undefined the constructor score(int int ) is undefined the constructor score(int int int ) is undefined