Object Orientated Programming in ANSI-C

This book is not going to praise object-oriented programming or condemn the Old Way. We are simply going to use ANSI-C to discover how object-oriented programming is done, what its techniques are, why they help us solve bigger problems, and how we harness generality and program to catch mistakes earlier.


Along the way we encounter all the jargon – classes, inheritance, instances, linkage, methods, objects, olymorphisms, and more – but we take it out of the realm of magic and see how it translates into the things we have known and done all along.

The first six chapters develop the foundations of object-oriented programming with ANSI-C. We start with a careful information hiding technique for abstract data types, add generic functions based on dynamic linkage and inherit code by judicious lengthening of structures. Finally, we put it all together in a class hierarchy that makes code much easier to maintain.

Table of Contents

  • Abstract Data Types — Information Hiding
  • Dynamic Linkage — Generic Functions
  • Programming Savvy — Arithmetic Expressions
  • Inheritance — Code Reuse and Refinement
  • Programming Savvy — Symbol Table
  • Class Hierarchy — Maintainability
  • The ooc Preprocessor — Enforcing a Coding Standard
  • Dynamic Type Checking — Defensive Programming
  • Static Construction— Self-Organization
  • Delegates — Callback Functions
  • Class Methods— Plugging Memory Leaks
  • Persistent Objects — Storing and Loading Data Structures
  • Exceptions — Disciplined Error Recovery
  • Forwarding Messages — A GUI Calculator

Book Details

Author(s): Axel-Tobias Schreiner
Format(s): PDF
File size: 1.20 MB
Number of pages: 221
Link: Download.

Leave a Reply