Friday
April 18, 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

computer science - to write a report on Object-Oriented Systems. The report ...
computer - Object-Oriented Data and Processes Identify a task you perform ...
object oriented programming - We want to define a class clockType, to implement...
object oriented programming 1 - write a c++ program that calculates the area of ...
business - the most important differences between object-oriented programming ...
object oriented programming - Write a program that takes as input the ...
IT 205 - Highlight the most important differences between object-oriented ...
Business - Highlight the most important differences between object-oriented ...
computers - differences between object-oriented programming languages and ...
cist1305 - third edition exercise 2 an object oriented approch to programming ...

Search
Members