Tuesday
March 31, 2015

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

programming - Define a structure called Object which includes three doubles ...
Programming - Here is the question that I need help to write the code for the ...
programming c# - how do I Write a two class application that has a one-...
computer - Object-Oriented Data and Processes Identify a task you perform ...
it 210 computer programming - I need to generate an object oriented design for a...
Computers(Java Programming) - Service Class: Lottery Write a Lottery class that ...
Programming - I need your help to write a program using visual basic 2010 for ...
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 science - I need to see if someone can hepl me with a c# programming ...

Members