Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

It is very common for a real - world organisation to keep track of a collection of things that are important to it . For

It is very common for a real-world organisation to keep track of a collection of things that are important to it. For example, a bird-watching club keeps track of birds they have seen.
The software that supports this scenario is based on two classes. The first class models the society (or club), and the second class models the things they keep track of, the objects of interest.
Objects of interest (like any other objects) have attributes representing data about those objects, modelled by fields.
The society object maintains a map consisting of objects of interest as keys and an associated list of information as values.
For example, a bird watching club might have as keys in the map, all the bird species that members had sighted, and as values lists of the dates of the sightings. Birds would need a species field.
These classes form a kind of simple database. To prevent the contents of this database being lost when the program stops running, we make it persistent, by providing methods that can write the data out to a file, and then read it back in again at a future time. You will learn how to do this when you reach Chapter 14 and do not need to consider the details at this stage.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke

4th Edition

0136086535, 9780136086536

More Books

Students also viewed these Databases questions

Question

What are the Five Phases of SDLC? Explain each briefly.

Answered: 1 week ago

Question

How can Change Control Procedures manage Project Creep?

Answered: 1 week ago