Programming in an Object-Oriented Environment (eBook)
320 Seiten
Elsevier Science (Verlag)
978-1-4832-6868-2 (ISBN)
Programming in an Object-Oriented Environment provides an in-depth look at the concepts behind the technology of object-oriented programming. This book explains why object-oriented programming has the potential to vastly improve the productivity of programmers and how to apply this technology in a practical environment. Many programming examples are included, focusing on how different programming languages support the core of object-oriented concepts. C++ is used as the main sample language throughout this text. This monograph consists of two major parts. Part I provides an introduction to object-oriented concepts, their rationale and their implementation in programming languages. The object-oriented approach to programming in an object-oriented environment is discussed in Part II. This publication is intended for software professionals who are interested in learning the fundamental concepts of object-oriented programming and how to apply these concepts in a practical computer environment.
Front Cover 1
Programming in an Object-Oriented Environment 4
Copyright Page 5
Table of Contents 8
Dedication 6
Preface 14
List of Figures 16
List of Tables 18
Introduction 22
Illustration 25
The Structure of This Book 29
Part I: Object-Oriented Concepts 30
Chapter 1. Basic Concepts 32
1.1 A World Full of Objects 32
1.2 Modeling with Objects 33
1.3 Software Objects 34
1.4 Basic Terminology 38
1.5 Classes 41
1.6 Creating Objects from Classes 48
1.7 Composing an Object-Oriented Program 55
1.8 Summary of Chapter 55
Chapter 2. The Object-Oriented Model of Computation 58
2.1 Objects Are Actors 58
2.2 Message Passing 59
2.3 Message Sending 62
2.4 Method Lookup and Binding 65
2.5 Overloading 66
2.6 Object Identity 68
2.7 Object Assignment 70
2.8 Object Self-Reference 73
2.9 Summary of Chapter 75
Chapter 3. Class Hierarchy 76
3.1 Categorization 76
3.2 Extension 78
3.3 Specialization 81
3.4 A Matter of Type 84
3.5 Method Binding 84
3.6 Multiple Inheritance 86
3.7 Repeated Inheritance 90
3.8 Abstract Classes 93
3.9 Generic Classes 96
3.10 Inheritance versus Containership 98
3.11 Summary of Chapter 100
Chapter 4.
102
4.1 What Is Encapsulation ? 102
4.2 Differences in Encapsulation 103
4.3 Specifying Access Rights 104
4.4 The Trap Door to Encapsulation 108
4.5 Summary of Chapter 109
Chapter 5.
112
5.1 The Course Scheduling Application 112
5.2 An Object-Oriented Solution 112
5.3 Supporting Objects 113
5.4 The Person Class Hierarchy 122
5.5 Courses and Schedules 129
5.6 Creating Instances 136
5.7 Summary of Chapter 151
Chapter 6. Object-Oriented Programming Languages 152
6.1 Elements of Object Orientation 152
6.2 Smalltalk 155
6.3 Objective-C 165
6.4 Eiffel 170
6.5 Object-Oriented Pascal 174
6.6 Summary of Chapter 176
Part II: Object-Oriented Environment 178
Chapter 7.
180
7.1 Introduction 180
7.2 Abstraction and Modularity 181
7.3 Information Hiding and Encapsulation 182
7.4 Reusability 183
7.5 Summary of Chapter 185
Chapter 8. Elements of Object-Oriented
186
8.1 Introduction 186
8.2 Programming with Classes 188
8.3 Programming with Objects 190
8.4 Program Organization 191
8.5 Summary of Chapter 196
Chapter 9. Data Structures and Algorithms 198
9.1 Introduction 198
9.2 Magnitudes 199
9.3 String Handling 207
9.4 Input and Output 210
9.5 Collectibles 220
9.6 Class Libraries 222
9.7 Summary of Chapter 230
Chapter 10. Object-Oriented User Interfaces 232
10.1 Introduction 232
10.2 Object Orientation 234
10.3 Device Independence 235
10.4 Reusable Components 236
10.5 User Interface Paradigms 238
10.6 User Interfaces: The Next Generation? 249
10.7 Summary of Chapter 251
Chapter 11.
254
11.1 Introduction 254
11.2 Organization 256
11.3 Accessing a Separate Database 260
11.4 Incorporating Database and Language 262
11.5 Summary of Chapter 264
Chapter 12.
266
12.1 Introduction 266
12.2 Design Tools 269
12.3 A Design Method 273
12.4 Summary of Chapter 276
Conclusion 278
Appendix A: Summary of Terms 280
Appendix B: Listing: The Hello World Example 284
Appendix C:
288
Appendix D: Listing: The Course Scheduling Example 292
Appendix E:
302
Bibliography 310
Index 316
Erscheint lt. Verlag | 10.5.2014 |
---|---|
Sprache | englisch |
Themenwelt | Mathematik / Informatik ► Informatik ► Theorie / Studium |
ISBN-10 | 1-4832-6868-3 / 1483268683 |
ISBN-13 | 978-1-4832-6868-2 / 9781483268682 |
Haben Sie eine Frage zum Produkt? |
Größe: 14,4 MB
Kopierschutz: Adobe-DRM
Adobe-DRM ist ein Kopierschutz, der das eBook vor Mißbrauch schützen soll. Dabei wird das eBook bereits beim Download auf Ihre persönliche Adobe-ID autorisiert. Lesen können Sie das eBook dann nur auf den Geräten, welche ebenfalls auf Ihre Adobe-ID registriert sind.
Details zum Adobe-DRM
Dateiformat: PDF (Portable Document Format)
Mit einem festen Seitenlayout eignet sich die PDF besonders für Fachbücher mit Spalten, Tabellen und Abbildungen. Eine PDF kann auf fast allen Geräten angezeigt werden, ist aber für kleine Displays (Smartphone, eReader) nur eingeschränkt geeignet.
Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen eine
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen eine
Geräteliste und zusätzliche Hinweise
Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.
aus dem Bereich