Monday
July 28, 2014

Homework Help: Object Oriented Programming

Posted by 7/7/77 on Wednesday, April 4, 2012 at 5:24pm.

Write an application class that generates 6 objects randomly from either a Car, or a Truck, or a Bicycle class. Your generated objects will be stored in a RentedVehicle array.
Write a static method in your test class that takes an array of RentedVehicles and prints the following for each element of the array:
if the object is a car print its name and the number of seats and cost.
if it is a Truck, print its name and capacity and cost.
if it is a Bicycle, print its name and how many days it is rented and cost.

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

it 210 computer programming - I need to generate an object oriented design for a...
C# Programming - There are three seating categories at an athletic stadium. For ...
computer science - I need to see if someone can hepl me with a c# programming ...
computer - Object-Oriented Data and Processes Identify a task you perform ...
computer programming - Assume that there are n tyres that could be used by car...
Python programming Language - Assume that there are n tyres that could be used ...
computer programming - Assume that there are n tyres that could be used by car, ...
computer science - to write a report on Object-Oriented Systems. The report ...
Science - Heat flows in which direction? A)from solid objects to liquids B)from ...
OPERATING SYSTEM - Hi, I need help with these questions. I have tried to find ...

Search
Members