Question: JAVA help ASAP please Instructions for Attraction java Write a Java program Attraction. java that has the following characteristics. extends Place New attributes: o type

JAVA help ASAP please

JAVA help ASAP please Instructions for Attraction java Write a Java programAttraction. java that has the following characteristics. extends Place New attributes: o

Instructions for Attraction java Write a Java program Attraction. java that has the following characteristics. extends Place New attributes: o type (int o price (double) New Methods: o public Attraction (String name, String desc, double latitude, double longitude, double price, int type) where for type values: -0 is an amusement park 1 is an aquarium 2 is a zoo o public double getPrice0 returns current price o public int get Type0-returns type o public boolean hasAnimals0-returns true if type contains "zoo" or "aquarium" o public void toString0 overrides superclass toString0 method so that: second line: print tab character, Tickets average $xxxx" and, if hasAnimals is true, "and feature exciting animals". Examples Seaport Village (latitude 32.70872, longitude 17.171) Tickets average $55.00 San Diego Zoo latitude 32.73607, longitude -117.14927) Tickets average $55.00 and feature exciting animals

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!