----------------------------------- wtd Thu Oct 26, 2006 5:27 pm [WIP] C++ OOP Whirlwind ----------------------------------- Let's create a class! class Foo { }; This class does precisely nothing useful. However, what it does do is create a new type. We can declare a variable of this type. Foo f; We can dynamically allocate memory for that type. Foo *f = new Foo; We can delete it. delete f; We can write a function which takes such a value as a parameter. int bar(Foo f) { return 42; } We can use that type in overloading existing functions. std::ostream& operator f; std::cout