Question: The code below includes a live Infant variable, jimsKid, which references an Infant object, and which you cannot see. Your job - using one or
The code below includes a live Infant variable, jimsKid, which references an Infant object, and which you cannot see. Your job - using one or several statements that allow you to find out information about Infant objects - is to print to the console in a single statement how old this kid is. Note: simply print the number here, e.g., 17. Don't print "Jim's kid is 17". NEED THIS IN JAVA code was not given
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
