File layout Each class definition in its own .h file Each class code in its own .cc file Compile each .cc with: g++ -Wall -g -c list.cc Creates corresponding object file list.o Then link .o files into a program with: g++ -Wall -g -o listprog list.o main.o