Answered step by step
Verified Expert Solution
Question
1 Approved Answer
It is Java ACTIVITY5 Define the missing method. licenseNum is created as: (100000 customID)+licenseYear.Sample output Dog license: 77702014 5.1.3: Basic class definition ! //-:.. Code
It is Java
ACTIVITY5 Define the missing method. licenseNum is created as: (100000 customID)+licenseYear.Sample output Dog license: 77702014 5.1.3: Basic class definition ! //-:.. Code from fil 2 public class Doglicense 3 private int licenseYear 4 private int licenseNum; e Doglicense.java :=.. 6 public void setYear(int yearRegistered) licenseYear -yearRegistered; 10 I FIXME: Write createLicenseNum) 12 Your solution goes here 13 14 public int getlicenseNum) 15 16 17 18 | //-..-end return licenseNum; 20 // ###== Code from file CallDogLicense.java =#=== 21 public class CallDogLicense f 22 public static void main (String [ args) DogLicense dog1 new DogLicense) 24 25 26 27 28 29 30 h 31 // dog1.setYear(2014); dog1.createLicenseNum(777); System.out.println("Dog license:dog1.getlicenseNum()); endStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started