1. Engineering
  2. Computer Science
  3. ca433 basic class definition define the missing method licensenum is...

Question: ca433 basic class definition define the missing method licensenum is...

Question details

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

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution