Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact

Background
How to set up your own classes of objects in C++, and how to use those objects and also objects that are available to you from elsewhwere. We also introduce access levels in this module.
Tips and short articles on this subject
Creating, setting up and using objects in C++
Where are your objects stored in C++?
Complete teaching example - C++, inheritance, polymorphism
Introduction to Object Oriented Programming
Well House Consultants
You are on the site of Well House Consultants who provide Open Source Training Courses and business hotel accommodation. You are welcome to browse and use our resources subject to our copyright statement and to add in links from your pages to ours.
Other subject areas - resources
Java Resources
Well House Manor Resources
Perl Resources
Python Resources
PHP Resources
Object Orientation and General topics
MySQL Resources
Linux / LAMP / Tomcat Resources
Well House Consultants Resources
Extras Resources
C and C++ Resources
Ruby Resources
Tcl/Tk Resources
Web and Intranet Resources
C and C based languages module C232
Defining and using classes in C++
Exercises, examples and other material relating to training module C232. 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 // First definition and use of C++ class /* This is file is a minimal class definition and use in C++ - showing the most basic of structure. ...
http://www.wellho.net/resources/ex.php4?item=c232/hmain.cpp  [code sample]
"Object Oriented Programming" is a whole new philosophy for programmers who have been writing short scripts for years, and it can be quite frightening ...
http://www.wellho.net/mouth/1925_Int ... mming.html  [short article]
On yesterday's C++ course, I provided a final example which illustrated polymorphism, and showed how even the simple example was best written, split, ...
http://www.wellho.net/mouth/2577_Com ... phism.html  [short article]
#include /* This will COMPILE correctly since we're correctly defining a Hotel and making references to that definition, but it will NOT load on its ...
http://www.wellho.net/resources/ex.php4?item=c232/afuncs.cpp  [code sample]

How to set up your own classes of objects in C++, and how to use those objects and also objects that are available to you from elsewhwere. We also introduce access levels 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
a2.cpp   Array of objects of different types
a3.cpp   Inherited methods - test program
afuncs.cpp   Class use with accessory functions
allin1.cpp   Class definition and use all in one file
book.cpp   Class implementation code - book
book.inc   Class interface - book
dayfour.cpp   Creating objects on the stack or heap
demo1.cpp   Base class and subclass method definition
demo1.h   Base class and subclass header definition
demo2.cpp   Further base and subclass definition
demo2.h   Further base and subclass header definition
demomake   makefile for module c232
g_main.cpp   Fundamental use of classes example - C++
hcd.cpp   Class description with accessor functions
hmain.cpp   First class in C++
hotel.cpp   Class member code
hotel.inc   Class descriptor
makefile   Compile / Load instructions for examples in this module
melksham.cpp   Class use with accessor functions
mylib.cpp   Main application calling constructors and destructors
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
Defining classes through struct and class.
Member functions.
Constructors and Destructors.
Private, Protected and Public.
Exercise.
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.


You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2010: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 344596 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho