Exercises, examples and other material relating to training module C233. This topic is presented on public courses
Learning to program in C++,
C++ for C Programmers,
C and C++ Programming
Learning to program in C++ - a conversion course for programmers in other languages
This intensive course teaches the C languages, and the C++ language ... http://www.wellho.net/course/cffull.html [course] |
C and C++ Programming - a conversion course for programmers in other languages
This intensive course teaches the C languages, and the C++ language which ... http://www.wellho.net/course/cafull.html [course] |
C++ for C Programmers - Learn Object Orientation and the C++ language
This course takes experienced C programmers and teaches them the
extra skills of ... http://www.wellho.net/course/cpfull.html [course] |
#include
#include "melkshamhotel.inc"
#include "regionhotel.inc"
/*
See also:
hotel.cpp
melkshamhotel.cpp
hotel.inc
melkshamhotel.inc
makefile
*/
... http://www.wellho.net/resources/ex.php4?item=c233/accom4.cpp [code sample] |
In all object oriented languages, you have a facility called inheritance where you can define one type of thing ("class of object") based on another, ... http://www.wellho.net/mouth/1819_Cal ... ctors.html [short article] |
I've been preparing some new C++ notes, in particular showing how you can create an array of objects of different derived types, and then call methods ... http://www.wellho.net/mouth/801_Simp ... le-C-.html [short article] |
Do you find some of the OO terminolgy baffling? Once you've learnt about constructors and methods, inheritance, overloading and polymorphism and statics, ... http://www.wellho.net/mouth/1217_Wha ... sses-.html [short article] |
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
Learning to program in C++,
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 700 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.