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
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.