Axel-Tobias Schreiner3446174265, 9783446174269
Object-oriented programming is the current cure-all – although it has been around for much more then ten years. At the core, there is little more to it then finally applying the good programming principles which we have been taught for more then twenty years. C++ (Eiffel, Oberon-2, Smalltalk … take your pick) is the New Language because it is object-oriented – although you need not use it that way if you do not want to (or know how to), and it turns out that you can do just as well with plain ANSI-C. Only object-orientation permits code reuse between projects ? although the idea of subroutines is as old as computers and good programmers always carried their toolkits and libraries with them.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, polymorphisms, 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. |
Table of contents : Preface……Page 1 Contents……Page 3 1 Abstract Data Types……Page 7 2 Dynamic Linkage……Page 17 3 Programming Savvy……Page 27 4 Inheritance……Page 36 5 Programming Savvy……Page 49 6 Class Hierarchy……Page 60 7 The ooc Preprocessor……Page 76 8 Dynamic Type Checking……Page 93 9 Static Construction……Page 104 10 Delegates……Page 112 11 Class Methods……Page 126 12 Persistent Objects……Page 143 13 Exceptions……Page 158 14 Forwarding Messages……Page 166 A ANSI-C Programming Hints……Page 189 B The ooc Preprocessor……Page 197 C Manual……Page 205 Bibliography……Page 221 |
Reviews
There are no reviews yet.