[first slide]
Introduction to Object Oriented Programming
Chapter 3
Classes and Methods
Outline
- Roadmap
- Same Ideas, Different Terms
- Encapsulation and Instantiation
- Internal and External Views
- State - Instance Variables
- Example - Playing Card
- Playing Card Backside - Data Areas
- Revision of Card
- Interface and Implementation
- Varieties of Classes
- Data Managers
- Data Sinks or Sources
- View or Observer Classes
- Facilitator or Helper Classes
- Classes and Methods in Object Pascal
- A typical Unit
- A Class Declaration
- A Typical Method Implementation
- Delphi Pascal is a Slightly Different Language
- An interface file in C++
- Class Description of Card
- Implementation of the card abstraction
- Parts of a Member Function
- Constructors
- C++ Inline definitions
- Classes and Methods in Java
- Card in Java
- Smalltalk Browser
Other Material
Intro OOP, Chapter 3, Slide 1