Question: Easy Java Question 11). Write the class beader and the variable declarations (a class nibonet consuructors or methods, with coerect syntax) for Per son (an
11). Write the class beader and the variable declarations (a class nibonet consuructors or methods, with coerect syntax) for Per son (an absirict clarsy). Person has the following variables: - name (Siring itistance variabic) - populat ion (chis is an int claus variable that kecps track of how many poople cuiat. Make sure is staris at 0) 12) Write a contruetor for Person. Tse cunstructor will take the nane and address and set all intance. can treat the dase as aven ewingh the class is abstrat, this docin't anfect any thing on the construction You 13) Write a tostring mehod for Person. The Suring represcatation of a peson is T the (name), 1 live at laderess)" (niplice broces with information from the person)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
