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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!