Question
Part II main method instructions (This main method is implemented in a separate class called TestParks) Make an object of the Park class called p1
Part II main method instructions (This main method is implemented in a separate class called TestParks) Make an object of the Park class called p1 by sending it the park name "Gas Works" Make a second object of the Park class called p2 by sending it the park name "Lincoln" and the number of photos 3 Print the number of park objects to the terminal window with a cal to getNumParks. Zero out the number of photos in p2 with a call to the method deletePhotos. Print the number of photos in p1 with a call to getNumPhotos. public class TestParks{ public static void main(String [] args){ //your code goes here }
Step 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