Professional Documents
Culture Documents
Starting Out With Visual C 4th Edition by Tony Gaddis Ebook PDF
Starting Out With Visual C 4th Edition by Tony Gaddis Ebook PDF
Chapter 11 Databases 645
11.1 Introduction to Database Management Systems . . . . . . . . . . . . . . . . . . . . . 645
11.2 Tables, Rows, and Columns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 647
11.3 Creating a Database in Visual Studio . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 650
Tutorial 11-1: Starting the Phone Book Application and Creating
the Phonelist.mdf Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 651
11.4 The DataGridView Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 659
Tutorial 11-2: Completing the Phone Book Application . . . . . . . . . . . . . . . . . . . 659
11.5 Connecting to an Existing Database and Using Details View Controls . . . . 666
Tutorial 11-3: Creating the Products Application and Using a Details View . . . . 668
11.6 More About Data-Bound Controls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 676
Tutorial 11-4: Creating the Product Lookup Application . . . . . . . . . . . . . . . . . . 679
Tutorial 11-5: Creating the Multiform Products Application . . . . . . . . . . . . . . . 682
11.7 Selecting Data with the SQL Select Statement . . . . . . . . . . . . . . . . . . . . . . 688
Tutorial 11-6: Creating the Product Queries Application . . . . . . . . . . . . . . . . . . 694
Tutorial 11-7: Creating the Product Queries Application . . . . . . . . . . . . . . . . . . 703
Tutorial 11-8: Creating the Product Search Application . . . . . . . . . . . . . . . . . . . 707
Key Terms 713 • Review Questions 713 • Programming Problems 717
W elcome to Starting Out with Visual C#, Fourth Edition. This book is intended
for an introductory programming course and is ideal for students with no
prior experience. Students who are new to programming will appreciate the clear, down-
to-earth explanations and the detailed walk-throughs that are provided by the hands-on
tutorials. More experienced students will appreciate the depth of detail as they learn
about the .NET Framework, databases, and other topics.
As with all the books in the Starting Out With series, the hallmark of this text is its clear,
friendly, and easy-to-understand writing. In addition, it is rich in example programs that are
concise and practical. The programs in this book include short examples that highlight specific
programming topics, as well as more involved examples that focus on problem solving. Each
chapter provides numerous hands-on tutorials that guide the student through each step of the
development of an application. In addition to detailed, step-by-step instructions, the tutorials
also provide the application’s completed code and screen captures of the completed forms.
A GUI-Based Approach
Beginning students are more motivated to learn programming when their applications
have some sort of graphical element, such as a graphical user interface (GUI). Students
using this book will learn to create GUI-based, event-driven, Visual C# applications. The
Visual Studio environment is used to create forms that are rich with user interface con-
trols and graphical images.
the sum, average, highest, and lowest values in an array. Finally, the student learns to
create List objects and store data in them.
Chapter 8: More About Processing Data. This chapter presents several diverse
topics. Now that the student has studied the fundamentals of Visual C# programming, he
or she can use the topics presented in this chapter to perform more advanced operations.
First, various string and character processing techniques are introduced. Then, the student
learns to use structures to encapsulate several variables into a single item. The student
next learns to create and use enumerated types. Last, the student learns about the Image-
List control, a data structure for storing and retrieving images.
Chapter 9: Classes and Multiform Projects. Up to this point, the student has
extensively used objects that are instances of .NET Framework classes. In this chapter, the
student learns to write classes to create his or her own objects with fields, methods, and
constructors. The student learns how to implement various types of properties within a
class, including auto-properties and read-only auto-properties. Creating arrays of objects
and storing objects in a List are also discussed. A primer on finding the classes in a prob-
lem as well as their responsibilities is provided. Finally, the chapter shows the student
how to create multiple form classes in a project, instantiate those classes, and display
them. A tutorial is given where the student creates a multiform application in which the
code in one form accesses controls on another form.
Chapter 10: Inheritance and Polymorphism. The study of classes continues in
this chapter with the subjects of inheritance and polymorphism. The topics covered
include base classes, derived classes, how constructors functions work in inheritance,
method o verriding, and polymorphism. Abstract classes and abstract methods are
also discussed.
Chapter 11: Databases. This chapter introduces the student to basic database con-
cepts. The student first learns about tables, rows, and columns and how to create an SQL
Server database in Visual Studio. The student then learns how to connect a database to a
Visual C# application and display a table in a DataGridView control, a Details view, and
other data-bound controls. Finally, the student learns how to write SQL Select statements
to retrieve data from a table.
Appendix A: C# Primitive Data Types. This appendix gives an overview of the
primitive data types available in C#.
Appendix B: Additional User Interface Controls. This appendix shows how to
create a variety of controls such as ToolTips, combo boxes, scroll bars, TabControls,
WebBrowser controls, ErrorProvider components, and menu systems.
Appendix C: ASCII/Unicode Characters. This appendix lists the ASCII (American
Standard Code for Information Interchange) character set, which is also the Latin Subset
of Unicode.
Appendix D: Answers to Checkpoint Questions. This appendix provides the
answers to the Checkpoint questions that appear throughout each chapter in the book.
Depend On
Chapter 8 Chapter 9
Chapter 11
More about Classes and
Databases
Processing Data Multiform Projects
Depends On
Chapter 10
Inheritance and
Polymorphism
Supplements
Student The following supplementary material is available with the book:
• Source code and files required for the chapter tutorials are available at www.
pearsonhighered.com/cs-resources
• A complete set of online VideoNotes that take the student through each tutorial in
the book. Also, one programming problem from each chapter has an accompanying
VideoNote that helps the student create a solution. You may access the VideoNotes
by going to www.pearsonhighered.com/cs-resources.
Instructor The following supplements are available to qualified instructors:
• Answers to all Review Questions in the text
• Solutions for all Programming Problems in the text
• Completed versions of all tutorials
• PowerPoint presentation slides for every chapter
• Test bank
For information on how to access these supplements, visit the Pearson Education Instruc-
tor Resource Center at www.pearsonhighered.com/irc.
Acknowledgments
There were many helping hands in the development and publication of this text. I would
like to thank the following faculty reviewers for their helpful suggestions and expertise
during the production of this edition:
Matthew Alimagham
Spartanburg Community College
Carolyn Borne
Louisiana State University
Arthur E. Carter
Radford University
Sallie B. Dodson
Radford University
Elizabeth Freije
Indiana University—Purdue University, Indianapolis
Bettye J. Parham
Daytona State College
Wendy L. Payne
Gulf Coast State College
Jason Sharp
Tarleton State University
John Van Assen
York Technical College
Reginald White
Black Hawk College
Dawn R. Wick
Southwestern Community College
xvi Preface
I would also like to thank my family and friends for their love and support in all my pro-
jects. I am extremely fortunate to have Matt Goldstein as my editor. His support and
encouragement make it a pleasure to write chapters and meet deadlines. I am also fortu-
nate to have Demetrius Hall and Bram Van Kempen as Marketing Managers. Their hard
work is truly inspiring, and they do a great job of getting this book out to the academic
community. The production team, led by Camille Trentacoste, worked tirelessly to make
this book a reality. Thanks to you all!
NO TE: If you are working in your school’s computer lab, there is a good chance
that Microsoft Visual Studio has already been installed. If this is the case, your
instructor will show you how to start Visual Studio.
xvii
This page intentionally left blank
Introduction to Computers
1
CHAPTER
and Programming
TOPICS
1.1 Introduction
Think about some of the different ways that people use computers. In school, students use
computers for tasks such as writing papers, searching for articles, sending e-mail, and
participating in online classes. At work, people use computers to analyze data, make pres-
entations, conduct business transactions, communicate with customers and coworkers,
control machines in manufacturing facilities, and do many other things. At home, people
use computers for tasks such as paying bills, shopping online, staying connected with
friends and family, and playing computer games. And don’t forget that smart phones,
iPods®, car navigation systems, and many other devices are computers as well. The uses
of computers are almost limitless in our everyday lives.
Computers can do such a wide variety of things because they can be programmed, which
means that computers are designed not to do just one job, but to do any job that their
programs tell them to do. A program is a set of instructions that a computer follows to
perform a task. For example, Figure 1-1 shows screens from two commonly used M
icrosoft
programs: Word and PowerPoint. Word is a word processing program that allows you to
create, edit, and print documents. PowerPoint allows you to create graphical slides and
use them as part of a presentation.
Programs are commonly referred to as software. Software is essential to a computer
because without software, a computer can do nothing. All the software that makes our
computers useful is created by individuals known as programmers, or software develop-
ers. A programmer, or software developer, is a person with the training and skills neces-
sary to design, create, and test computer programs. Computer programming is an exciting
and rewarding career. Today, programmers work in business, medicine, government, law
enforcement, agriculture, academics, entertainment, and almost every other field.
1
2 Chapter 1 Introduction to Computers and Programming
This book introduces you to the fundamental concepts of computer programming using
the C# programming language. Before we begin exploring those concepts, you need to
understand a few basic things about computers and how they work. This chapter provides
a solid foundation of knowledge that you will continually rely on as you study computer
science. First, we discuss the physical components that computers are commonly made of.
Then, we look at how computers store data and execute programs. Next, we introduce
you to two fundamental elements of modern software design: graphical user interfaces and
objects. Finally, we give a quick introduction to the software used to write C# programs.
CONCEPT: The physical devices that a computer is made of are referred to as the
computer’s hardware. The programs that run on a computer are referred
to as software.
Hardware
Hardware refers to all the physical devices, or components, of which a computer is made. A
computer is not one single device but is a system of devices that all work together. Like the
different instruments in a symphony orchestra, each device in a computer plays its own part.
If you have ever shopped for a computer, you have probably seen sales literature listing
components such as microprocessors, memory, disk drives, video displays, graphics cards,
and so forth. Unless you already know a lot about computers or at least have a friend who
does, understanding what these different components do can be confusing. As shown in
Figure 1-2, a typical computer system consists of the following major components:
• The central processing unit (CPU)
• Main memory
• Secondary storage devices
• Input devices
• Output devices
Let’s take a closer look at each of these components.
1.2 Hardware and Software 3
Central Processing
Unit
Output
Devices
Input
Devices
Main Memory
(RAM)
Secondary
Storage Devices
The CPU
When a computer is performing the tasks that a program tells it to do, we say that the
computer is running or executing the program. The central processing unit, or CPU, is the
part of a computer that actually runs programs. The CPU is the most important compo-
nent in a computer because without it, the computer could not run software.
In the earliest computers, CPUs were huge devices made of electrical and mechanical com-
ponents such as vacuum tubes and switches. Figure 1-3 shows such a device. The two
women in the photo are working with the historic ENIAC computer. The ENIAC, consid-
ered by many to be the world’s first programmable electronic computer, was built in 1945
to calculate artillery ballistic tables for the U.S. Army. This machine, which was primarily
one big CPU, was 8 feet tall and 100 feet long and weighed 30 tons.
Today, CPUs are small chips known as microprocessors. Figure 1-4 shows a photo of a
lab technician holding a modern-day microprocessor. In addition to being much smaller
than the old electromechanical CPUs in early computers, microprocessors are also much
more powerful.
Main Memory
You can think of main memory as the computer’s work area. This is where the computer
stores a program while the program is running, as well as the data that the program is
working with. For example, suppose you are using a word processing program to write an
essay for one of your classes. While you do this, both the word processing program and
the essay are stored in main memory.
Main memory is commonly known as random access memory, or RAM. It is called this
because the CPU is able to quickly access data stored at any random location in RAM.
RAM is usually a volatile type of memory that is used only for temporary storage while a
program is running. When the computer is turned off, the contents of RAM are erased.
Inside your computer, RAM is stored in chips, similar to the ones shown in Figure 1-5.
Most computers have some sort of secondary storage device, either a traditional disk drive
or a solid-state drive, mounted inside their case. External storage devices are also availa-
ble, which connect to one of the computer’s communication ports, or plug into a memory
slot. External storage devices can be used to create backup copies of important data or to
move data to another computer. For example, USB (Universal Serial Bus) drives and SD
(Secure Digital) memory cards are small devices that appear in the system as disk drives.
They are inexpensive, reliable, and small enough to be carried in your pocket.
Optical devices such as the compact disc (CD) and the digital versatile disc (DVD) are also
popular for data storage. Data is not recorded magnetically on an optical disc but is
encoded as a series of pits on the disc surface. CD and DVD drives use a laser to detect the
pits and thus read the encoded data. Optical discs hold large amounts of data, and because
recordable CD and DVD drives are now commonplace, they are good mediums for creat-
ing backup copies of data.
Input Devices
Input is any data the computer collects from people and from other devices. The compo-
nent that collects the data and sends it to the computer is called an input device. Common
input devices are the keyboard, mouse, touchscreen, scanner, microphone, and digital
camera. Disk drives and optical drives can also be considered input devices because pro-
grams and data are retrieved from them and loaded into the computer’s memory.
Output Devices
Output is any data the computer produces for people or for other devices. It might be a
sales report, a list of names, or a graphic image. The data is sent to an output device,
which formats and presents it. Common output devices are screens and printers. Storage
devices can also be considered output devices because the system sends data to them in
order to be saved.
Software
If a computer is to function, software is not optional. Everything that a computer does,
from the time you turn the power switch on until you shut the system down, is under the
control of software. There are two general categories of software: system software and
application software. Most computer programs clearly fit into one of these two categories.
Let’s take a closer look at each.
6 Chapter 1 Introduction to Computers and Programming
System Software
The programs that control and manage the basic operations of a computer are generally
referred to as system software. System software typically includes the following types
of programs:
Operating Systems
An operating system is the most fundamental set of programs on a computer. The
operating system controls the internal operations of the computer’s hardware, manages
all the devices connected to the computer, allows data to be saved to and retrieved
from storage devices, and allows other programs to run on the computer.
Utility Programs
A utility program performs a specialized task that enhances the computer’s operation
or safeguards data. Examples of utility programs are virus scanners, file-compression
programs, and data-backup programs.
Software Development Tools
The software tools that programmers use to create, modify, and test software are
referred to as software development tools. Assemblers, compilers, and interpreters,
which are discussed later in this chapter, are examples of programs that fall into
this category.
Application Software
Programs that make a computer useful for everyday tasks are known as application soft-
ware. These are the programs that people normally spend most of their time running on
their computers. Figure 1-1, at the beginning of this chapter, shows screens from two com-
monly used applications—Microsoft Word, a word processing program, and Microsoft
Powerpoint, a presentation program. Some other examples of application software are
spreadsheet programs, e-mail programs, Web browsers, and game programs.
Checkpoint
Fig. 216.—Characteristic
Polynesian Mollusca: A,
Achatinella vulpina Fér.,
Sandwich Is.; B, Partula
planilabrum Pease, Society
Is.
(a) The general features of the Polynesian province are very
similar throughout, although the Mollusca of each island group are in
the main peculiar. The species are mostly small and obscure. Helix
scarcely occurs, its place being taken by small Zonitidae
(Microcystis, Charopa, Trochomorpha, etc.), and by groups of so-
called Patula (Endodonta, Pitys, etc.), the exact position of which is
not yet settled. Libera, remarkable for its method of ovipositing (p.
128), is peculiar to the Society and Hervey Is.; Partula is almost
universal, attaining its maximum (40 sp.) in the Society Is.;
Tornatellina, Pupa, and Vertigo occur throughout.
The land operculates consist chiefly of Omphalotropis, Pupina,
Realia, and Helicina. Diplommatina and Palaina are abundant on the
Pelews, and a Moussonia occurs in the Samoa Is. Ostodes, a small
form of Cyclophorus, is found in some of the southern groups. The
fresh-water operculates are Melania, Neritina (including Clithon, a
sub-genus furnished with spines), and Navicella; there are no
Unionidae, while fresh-water Pulmonata are very scarce.
(b) The land Mollusca of the Hawaiian province are distinguished
by the possession of four entirely peculiar genera—Achatinella,
Leptachatina, Carelia, and Auriculella. More than 300 of the two
former genera have been described, every mountain valley of some
of the islands having its own peculiar species. The destruction of the
indigenous herbage by goats is rapidly extinguishing many forms.
Partula, and the small land operculates, so characteristic of the other
groups, are, with the exception of Helicina, entirely wanting. The
occurrence of one of the Merope group of Helix (Solomon Is.) is
remarkable, and there is a rich development of Succinea. “Patula,”
Microcystis, Tornatellina, and the other small Polynesian land
Pulmonata are well represented. The presence of Isidora, absent
from the central Pacific groups, is remarkable, and Erinna is a
peculiar genus belonging to the Limnaeidae.
CHAPTER XI
GEOGRAPHICAL DISTRIBUTION OF LAND MOLLUSCA (continued)—THE
ETHIOPIAN, NEARCTIC, AND NEOTROPICAL REGIONS
Fig. 220.—Mollusca
characteristic of L.
Tanganyika: A, Nassopsis
nassa Woodw.; B, Spekia
zonata Woodw.; C,
Syrnolopsis lacustris E. A.
Smith.
Fig. 221.—Achatina zebra
Lam., S. Africa. × ½.
(2) The South African Sub-region.—The principal characteristic
of the Mollusca of S. Africa is the occurrence of numerous small
species of Helicidae, belonging chiefly to the groups Pella, Phasis,
Dorcasia, and Sculptaria, all of which are practically peculiar.
Carnivorous genera are also prominent, Ennea here attaining its
maximum. Rhytida (to which several species still regarded as Pella
belong) is common only to the S. Pacific and Australasia, and forms,
with Isidora among the fresh-water pulmonates, a remarkable link of
connexion. Aerope, the largest of all helicoid carnivorous genera,
and Chlamydephorus, a carnivorous slug with an internal shell, are
peculiar. Achatina is still abundant, but Limicolaria is wanting.
Livinhacea, a form with a continuous peristome, perhaps akin to
Bulimus; Apera, a form of slug; and Coeliaxis, a genus perhaps akin
to the Papuan and Queensland Perrieria, are all peculiar. The land
operculates, which are not numerous, are of the East African type.
Land Mollusca of the S. African Sub-region
Chlamydephorus 1
Ennea 31
Aerope 5
Rhytida 3
Helicarion 3
Trochonanina 1
Trochozonites 1
Limax 1
Apera 1
Vitrina 7
Nanina 6
Conulus 2
Patula 2
Pella 44
Dorcasia 8
Phasis 1
Sculptaria 2
Helix (inc. sed.) 4
Rachis 1
Pachnodus 3
Buliminus (?) 4
Pupa 20
Vertigo 2
Achatina 18
Livinhacea 1
Stenogyra 4
Coeliaxis 1
Succinea 3
Vaginula 2
Cyclophorus 1
Cyclostoma 7
Cyclotus (?) 1
Blanfordia 1
St. Helena.—The Molluscan fauna of St. Helena is perhaps the
most puzzling, as regards its geographical affinities, of any in the
world. It consists of 29 peculiar species of land Mollusca (fresh-water
species being unknown), 19 of which are recently extinct, partly
owing to the destruction of the forest, but are found in considerable
abundance in a state of good preservation.[375] The genera are—
Hyalinia 1
Patula 4 (3 extinct)
Endodonta 10 (7 extinct)
Bulimulus 7 (5 extinct)
Pachyotus 1 (extinct)
Tomigerus (?) 1 (extinct)
Pupa 2 (extinct)
Succinea 3
The 5 genera which concentrate our attention are Patula,
Endodonta, Pachyotus (Fig. 222), Tomigerus, and Bulimulus, all of
which appear utterly strange to an oceanic island in the middle of the
S. Atlantic. Patula and Endodonta are essentially Polynesian forms,
occurring abundantly on all the island groups in the Central Pacific.
Pachyotus, Tomigerus (assuming its correct identification), and
Bulimulus are all S. American forms, the two former being especially
characteristic of Brazil. How this mixture of genera now confined to
regions so widely distant, not only from St. Helena itself, but from
one another, became associated here, is a problem obviously not
easy of solution. The fauna is probably a remnant of a very ancient
type, possibly at one time much more widely distributed. Endodonta
(an essentially insular form, like Omphalotropis) actually occurs on
Fernando Noronha, off the Brazil coast, and we shall see how an
Indian and even a Polynesian element is present off the eastern
coasts of Africa.
Ascension I.—One indigenous species, a so-called Limax, is all
that has ever been discovered.
(3) The Malagasy Sub-region includes Madagascar with its
attendant satellites Bourbon, Mauritius, and Rodriguez, and the
Seychelles and Comoro groups. No land Mollusca are known from
the Amirantes, the Chagos, or from Aldabra. The special
characteristics of the sub-region are the great development of the
carnivorous land Mollusca (Ennea, Gibbus), the occurrence of a
considerable number of true Helicidae of great size and beauty, and
the prominence of the genus Cyclostoma.
(a) The Madagascan Province.—The land Mollusca of
Madagascar, although as yet imperfectly known, possess a striking
individuality. Two of the chief characteristics of the Ethiopian region
are the paucity of its land operculate and of its Helix fauna;
Madagascar is especially distinguished by the rich development of
both these groups. For size, colouring, and beauty of shape, the
Helicidae of the two sub-genera Ampelita and Helicophanta rival, if
they do not surpass, any in the world. They are quite peculiar to this
sub-region, not a trace of them occurring on the Mascarenes,
Seychelles, or even on the Comoros. Helicophanta is distinguished
by the enormous size of its embryonic shell, which persists in the
adult (Fig. 223), and in this respect the group appears to be related
to Acavus (Ceylon, Fig. 204) and Panda (N.E. Australia). As is usual
when Helix is well developed, Nanina (about 12 sp.) is
proportionately scanty.
The African Bulimini (Pachnodus and Rachis) are represented by
two species, but Achatina, so abundant on the mainland, is scarce.
Two other groups of Buliminus, Leucotaenia and Clavator, are
peculiar. The presence of a single Kaliella, specifically identical with
a common Indian form, is very remarkable.
Cyclostoma proper, of which Madagascar is the metropolis, is
richly developed (54 sp.). Many of the species are of great size and
of striking beauty of ornamentation. Unlike its Helicidae, this genus is
not restricted to Madagascar; several species occur on the mainland,
6 on the Comoros, one on the Seychelles, and 16 in Mauritius. The
sub-genera Acroptychia and Hainesia are peculiar.
Fig. 224.—Cyclostoma
campanulatum Pfr., Madagascar.
The fresh-water Mollusca of Madagascar contain further traces of
Indian relationship. Thus we find two species of Paludomus, a genus
whose metropolis is Ceylon, India, and Further India, and which is
barely represented on the Seychelles and in the Somali district.
Melanatria, which is peculiar to Madagascar, has its nearest affinities
in the Cingalese and East Indian faunas. Several of the Melania and
the two Bithynia are of a type entirely wanting in Africa, but common
in the Indo-Malay sub-region. Not a single one of the characteristic
African fresh-water bivalves (Mutela, Spatha, Aetheria, Galatea, etc.)
has been found in Madagascar. On the other hand, certain African
Gasteropoda, such as Cleopatra and Isidora, occur, indicating, in
common with the land Mollusca, that an ultimate land connexion with
Africa must have taken place, but at an immeasurably remote period.
Land and Fresh-water Mollusca of Madagascar
Ennea 9
Urocyclus 2
Helicarion (?) 1
Macrocyclis (?) 1
Kaliella 1
Nanina (inc. sed.) 9
Ampelita 35
Helicophanta 17
Pachnodus 2
Rachis 2
Leucotaenia 2
Clavator 2
Achatina 3
Opeas 2
Subulina 3
Vaginula 4
Limnea 2
Planorbis 3
Isidora 3
Melania 7
Melanatria 4
Paludomus 2
Vivipara 1
Bithynia 2
Cleopatra 2
Ampullaria 6
Cyclophorus 2
Cyclotus (?) 1
Cyclostoma 54
Otopoma 5
Lithidion 1
Acroptychia 3
Hainesia 3
Unio 1
Corbicula 2
Sphaerium 1
Pisidium 1
The Comoro Islands.—This isolated group possesses about 100
species, almost all of which are peculiar. The principal feature is the
rich development of Ennea (30 sp.). On the whole the group shows
more relationship to Madagascar than to the mainland. Thus we
have six species of true Cyclostoma, and only one Achatina, while
among the fresh-water genera is Septaria, which is characteristic of
the whole Malagasy Sub-region, but is absent from the mainland.
The Helicidae are all of insignificant size. Peculiar to the group is the
remarkable genus Cyclosurus (Fig. 152, p. 247).
(b) The Mascarene Province (Mauritius, Bourbon, Rodriguez, and
the Seychelles).—The percentage of peculiar species, which is very
high, can only be paralleled in the case of some of the West Indian
islands, and sufficiently attests the extreme isolation of the group
from Madagascar. We have—
Total sp. Land sp. Fresh-water Peculiar Peculiar to
sp. group
Mauritius 113 104 9 78 102 (90 p.c.)
Bourbon 45 40 5 19 38 (84 p.c.)
Rodriguez 23 19 4 15 21 (95 p.c.)
Seychelles 34 27 7 24 30 (90 p.c.)
The Mollusca of the group exhibit three distinct elements, the
Indigenous, the Madagascan, and the Indian and Australasian.
The genus Pachystyla (Naninidae) is quite peculiar, forming the
main portion of the land snails proper. It attains its maximum in
Mauritius (17 sp.), with 5 sp. in Bourbon and one sub-fossil sp. in
Rodriguez, while in the Seychelles it is absent. But the principal
feature of the Mascarene group is the extraordinary development of
the carnivorous genus Gibbus, which has 27 sp. in Mauritius, 8 in
Bourbon, 4 in Rodriguez; in the Seychelles, it is replaced by
Edentulina and Streptostele. The principal link with Madagascar is
found in a part of the operculate land fauna. Cyclostoma is present
(with Otopoma) in several fine living forms, and the number of sub-
fossil species is a clear indication that this group was, not long ago,
much more abundant, for of the 16 Cyclostoma known from
Mauritius 10 are sub-fossil. The operculates form a decided feature
of the land fauna; thus in Mauritius there are 32 species, or more
than 28 per cent of the whole.