OOP DemystifiedLearn object-oriented programming in no time with help from this easy-to-understand guide, ideal for novice and expert programmers alike. Discover why objects are so successful as the model for this type of programming and how objects are classified. Distinguish between how people see the world and how computers “see” it. Learn about attributes and methods, inheritance, polymorphism, real-world and case modeling, object-oriented programming languages, and much more. Each chapter ends with a quiz, culminating in a final exam at the end of the book so you can test your knowledge. |
Contents
1 | |
11 | |
Chapter 3 Encapsulation | 27 |
Chapter 4 Methods and Polymorphism | 45 |
Chapter 5 Inheritance | 61 |
Chapter 6 Abstraction | 87 |
Chapter 7 Identifying and Describing Objects | 99 |
Chapter 8 RealWorld Modeling | 115 |
Chapter 11 Interfaces | 169 |
Chapter 12 ObjectOriented Programming Languages | 189 |
Final Exam | 211 |
Answers to Quizzes and Final Exam | 215 |
Classes in Java | 233 |
Classes in C++ | 241 |
Class Definitions in C | 247 |
Index | 251 |
Other editions - View all
Common terms and phrases
abstract abstract method access specifier application assembly assigned attributes and behaviors base class called chapter char class definition collaboration collection common compiled complete constructor contains course cout create defined derived describe develop diagram Display endl Enrollments entity example Figure File GradStudent class graduate student Graduation identify implement inheritance instance interface Java Last learned look m_Graduation m_ID Major means member function memory method Modify multiple inheritance Note object object-oriented programming operator parent passed perform Person polymorphism procedures programming language protected public void real world reference registration relationship represent request require rules screen shown shows similar simple statement static String Student class subclass super class Table task things typically user interface virtual void void Display window Write