Question: CA43.3: Basic class definition. Define the missing method. licenseNum is created as: (100000 * customID) + licenseYear. Sample output: Dog license: 77702014 CHALLENGE 1 //

CA43.3: Basic class definition. Define the missing method. licenseNum is created as: (100000 * customID) + licenseYear. Sample output: Dog license: 77702014 CHALLENGE 1 // Code from file DogLicense.java 2 public class Doglicense t 4 private int licenseNum 6 public void setYear(int yearRegistered) private int licenseYear 1 test passed licenseYear-yearRegistered; All tests passed 10 I FIXME: Write createLicenseNum() 12Your solution goes here 13 public int getLicenseNum) 14 15 16 17 // end:=== 18 19 // Code from file CallDogLicense.java 20 public class CallDogLicense f 21 public static void main (String [] args) return licenseNum: Run
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
