Fun With Objects

Completed Posted Dec 11, 2003 Paid on delivery
Completed Paid on delivery

**_Description:_**

Old MacDonald had a farm, as the story goes, e-i-e-i-o. And on this farm he had a bunch of Animals specified below, e-i-e-i-o.

Animals:

* 2 Pigs, named; Oscar and Meyer

* 1 Horse, named; Man-of-war

* 3 Sheep, named; Dolly, Shy, and Dolly(to be explained)

* 1 Cow, named; Abunga

Your mission is to write an application (named Lab4yourname) that will create an object for each of Farmer MacDonald’s animals, and to invoke member methods of each,

Methods for all Animals:

* a valid constructor

* String makeSound(); // will return a String with the sound the animal makes

* String whatType(); // will return a String with the type of animal it is

* String toString(); // will show all of the member data values of the object

Member variables for all animals

* String name;

* int age;

* String color;

* One more variable of your choice.

Create 5 user-defined types, and show that you have mastered the ability to create objects of these types. 4 of them will extend from the Abstract (super) class Animal.

For one sheep you will “clone?? it, that is creating a constructor that will take all the information from the first sheep and place its attributes into the third sheep.

You will finally create an array of type Animals within the application and place each of Farmer MacDonald’s animals into the array, and using a for loop, utilizing the _static class member variable_ **animalCount**, print to a single dialog box, each specific animal’s name, type and age. (You may do this with 3 methods, or simply overload the toString method.

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

## Platform

windows/any

Engineering Java MySQL PHP Software Architecture Software Testing

Project ID: #3042122

About the project

14 proposals Remote project Active Dec 12, 2003

Awarded to:

always99vw

See private message.

$15 USD in 4 days
(22 Reviews)
3.4

14 freelancers are bidding on average $17 for this job

alisheharyarvw

See private message.

$12.75 USD in 4 days
(100 Reviews)
6.6
bahe

See private message.

$8.5 USD in 4 days
(147 Reviews)
6.5
mintrelinva

See private message.

$8.5 USD in 4 days
(91 Reviews)
5.9
senzaciosnegyes

See private message.

$15.3 USD in 4 days
(104 Reviews)
4.9
herculesevw

See private message.

$16.15 USD in 4 days
(79 Reviews)
4.7
exceptionalcoder

See private message.

$29.75 USD in 4 days
(8 Reviews)
4.0
absolutredbull

See private message.

$25.5 USD in 4 days
(56 Reviews)
3.9
grayfacedbu

See private message.

$21.25 USD in 4 days
(39 Reviews)
3.5
MattchedIT

See private message.

$8.5 USD in 4 days
(17 Reviews)
3.4
patrica

See private message.

$20.4 USD in 4 days
(19 Reviews)
3.2
devgu

See private message.

$12.75 USD in 4 days
(2 Reviews)
2.0
cbhoffman

See private message.

$17 USD in 4 days
(0 Reviews)
0.0
darkjava

See private message.

$29.75 USD in 4 days
(1 Review)
0.0