Em Andamento

Fun With Objects

**_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

Habilidades: Engenharia, Java, MySQL, PHP, Arquitetura de software, Teste de Software

Ver mais: write dolly, string source code java, meyer sound, fun with, code war, abunga, work dolly, abstract animal, shy, pigs, old man, name farm, horse box, farmer, create java object, java abstract data type, application named, fun work, java abstract data types, write information animals, object sound, fun application, dialog box windows, fun application java, create objects

Acerca do Empregador:
( 1 comentário ) United States

ID do Projeto: #3042122

Premiar a:

always99vw

See private message.

$15 USD em 4 dias
(22 Avaliações)
3.4

14 freelancers estão ofertando em média $17 para este trabalho

alisheharyarvw

See private message.

$12.75 USD in 4 dias
(100 Comentários)
6.6
bahe

See private message.

$8.5 USD in 4 dias
(147 Comentários)
6.5
mintrelinva

See private message.

$8.5 USD in 4 dias
(91 Comentários)
5.9
senzaciosnegyes

See private message.

$15.3 USD in 4 dias
(104 Comentários)
4.9
herculesevw

See private message.

$16.15 USD in 4 dias
(79 Comentários)
4.7
exceptionalcoder

See private message.

$29.75 USD in 4 dias
(8 Comentários)
4.0
absolutredbull

See private message.

$25.5 USD in 4 dias
(56 Comentários)
3.9
grayfacedbu

See private message.

$21.25 USD in 4 dias
(39 Comentários)
3.5
MattchedIT

See private message.

$8.5 USD in 4 dias
(17 Comentários)
3.4
patrica

See private message.

$20.4 USD in 4 dias
(19 Comentários)
3.2
devgu

See private message.

$12.75 USD in 4 dias
(2 Comentários)
2.0
cbhoffman

See private message.

$17 USD in 4 dias
(0 Comentários)
0.0
darkjava

See private message.

$29.75 USD in 4 dias
(1 Comentário)
0.0