CtoC++

From SourceWiki
Jump to navigation Jump to search

CtoC++: Upgrading to Object Oriented C

Introduction

This tutorial carries on where StartingC left off.

To get the material, cut and paste the contents of the box below onto your command line.

svn co http://source.ggy.bris.ac.uk/subversion-open/CtoC++/trunk ./CtoC++

In this tutorial we will assume basic linux skills as outlined in Linux1.

Cutting to the Chase: Classes and Encapsulation

cd CtoC++/examples/example1
make

We go a step further in bundling stuff together Weighing the Earth example public, private and interfaces classes as building blocks, glue code and lego bricks

More on Methods

Constructors, destructors, overloading

Inheritance

template classes, virtual etc.