Situation:
A pet shop contains multiple pets, namely two cats (Fred, Tom), two dogs (Buch, Bravo) and one bird (Tweety). Each pet has a distinct price, a name, and a sound. In Addition, a pet owner can enter the shop and buy one or multiple pets. On entering the shop every pet tries to draw the attention of the pet owner to itself by making a distinct sound (by console based string output).
ToDo:
Provide the needed classes (later extensibility for alternative pets should be kept in mind)
Provide an additional class “PetShopSimulation” which uses your classes and simulates the entrance of a pet owner, who buys one cat and one bird.
lester.awotwe
0
Newbie Poster
Recommended Answers
Jump to Post"Urgent" means "I left this too late"?
DaniWeb Member Rules (which you agreed to when you signed up) include:
"Do provide evidence of having done some work yourself if posting questions from school or work assignments"
http://www.daniweb.com/community/rulesPost what you have done so far and someone will help you …
All 4 Replies
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
aVar++
14
Posting Whiz
lester.awotwe
0
Newbie Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.