Question: please help with these java questions 1 Substitution Parent class Child class a instanceof Animal a instanceof Animal |I b instanceof Zebra a instanceof Animal&&

please help with these java questionsplease help with these java questions 1 Substitution Parent class Child class

1 Substitution Parent class Child class a instanceof Animal a instanceof Animal |I b instanceof Zebra a instanceof Animal&& instanceof Zebra a instanceof Animal&& b instanceof Object a instanceof Zebra a instanceof String a instanceof Animal&& b instanceof Zebra a instanceof Animal a instanceof Animal a instanceofTiger For each of the above, could these pair of conditions be: Preconditions Postconditions Neither 2 Class extraction 2.1 Ex 1 A public transport network consists of bus routes, ferry routes and stops. Stops can appear on multiple routes. Passengers travel between stops on busses and ferries (depending on the route type) Timetables describe when busses and ferries arrive at each stop along routes 2.2 Ex 2 A petrol station has a number of pumps each dispensing up to three types of fuel. The car being refueled must be compatible with the nozel for that fuel Customers can pay for fuel either with a credit card transaction at the pump or by walking in to the shop. The shop also sells food, magazines and emergency supplies. High demand items in the shop must be restocked within 12 hours

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!