Part 2: Object-oriented programming.

 Up   Prev Next

 Chapters:
 
  1. Word
      
    PDF
    Classes.

This part is Under Construction, and so the number of chapters etc. is unknown. Here you’ll learn to program in an object-oriented style using C++. That’s necessary for e.g. GUI programming, but also helps much for just about any small program (it helps even more for larger programs).

16 April 2005: added PDF version of chapter 2.1 (you’ll need e.g. Acrobat Reader for that). And the numbering format has been changed to be more intuitive, I hope, but so far only for chapter 2.1; it’s work. And chapter 2.2, working title “Physical organization”, will be available Real Soon Now… ;-)

 
Chapter 2.1: Classes.    PDF Word

Introduces the C++ language feature used to define new types, namely classes. The focus in on creating safe and reusable classes. As a main theme the jugs-puzzle program from chapter 1.4 is revisited, and the chapter ends with an example program that solves the puzzle.

Valid XHTML 1.0!