

  
  
  
  
  
  
  
  
  
  
  
  
  
  
  

![[Courses]](../icons/up.png)
![[Rich]](../icons/prev.png) ![[Home]](../icons/home.png) ![[Rich]](../icons/next.png)
![[PHome]](../icons/author.png) |
Here are a number of examples that you may wish to study. Please
let me know if you have any questions or comments about them. I am
particularly interested in learning about any mistakes that I may have
made.
Simple Class
Dynamic Memory Allocation
- String -- A simplified version of the C++ ANSI
standard string class
- VectorI -- A simplified version of the STL
vector class that holds integers
Inheritance
- Folder -- A collection of three classes:
TextDoc, Folder, and SuperFolder that
illustrates class inheritance
Templated Class
- Vector -- A simplified version of the STL
vector class that holds arbitrary objects
Polymorphism
UML
- UML -- An example of a UML diagram to
describe three classes and their relationships to each other
|