April 2018
Intermediate to advanced
292 pages
6h 44m
English
After the introduction of jagged arrays, let's proceed with an example. You will see how to develop a program that creates a plan of transportation for the whole year. For each day of each month, the application draws one of the available means of transport. At the end, the program presents the generated plan, as shown in the following screenshot:

To start with, let's declare the enumeration type with constants representing available types of transport, namely a car, a bus, a subway, a bike, or on foot, as follows:
public enum TransportEnum
{
CAR,
BUS,
SUBWAY,
BIKE,
WALK
}
In the next step, you create two extension ...
Read now
Unlock full access