If you want to define one object that's similar
(but not identical) in structure and behaviour to another,
you do so through inheritance. If you then have an array
of similar objects, you can have C++ decide which particular
behavious to use on each element in turn and this is known
as polymorphism. In C++, you can define a type of object
that inherits its behaviour from seveal others if you wish,
and you can group toghether a whole lot of similar types of
objects into modules - both of these are more advanced
facilities that we cover in this module.
This topic is presented on public courses
C++ for C Programmers,
C and C++ Programming
Examples from our training material
Background information
Some modules are
available for download as a sample of our material or under an
Open Training Notes License for free download from
http://www.training-notes.co.uk.
Topics covered in this module
Deriving one class from another - Inheritance.
Inheritance and access control.
Packaging classes into modules.
Extending Classes.
Multiple inheritance.
Complete learning
If you are looking for a complete course and not just a information on a single subject, visit our
Listing and schedule page.
Well House Consultants specialise in training courses in
Python,
Perl,
PHP, and
MySQL. We run
Private Courses throughout the UK (and beyond for longer courses), and
Public Courses at our training centre in Melksham, Wiltshire, England.
It's surprisingly cost effective to come on our public courses -
even if
you live in a different
country or continent to us.
We have a technical library of over 600 books on the subjects on which we teach.
These books are available for reference at our training centre. Also
available is the Opentalk
Forum for discussion of technical questions.