[first slide]

Introduction to Object Oriented Programming

Timothy A. Budd

Chapter 3

Classes and Methods

Outline

  1. Roadmap
  2. Same Ideas, Different Terms
  3. Encapsulation and Instantiation
  4. Internal and External Views
  5. State - Instance Variables
    1. Example - Playing Card
    2. Playing Card Backside - Data Areas
    3. Revision of Card
  6. Interface and Implementation
  7. Varieties of Classes
    1. Data Managers
    2. Data Sinks or Sources
    3. View or Observer Classes
    4. Facilitator or Helper Classes
  8. Classes and Methods in Object Pascal
    1. A typical Unit
    2. A Class Declaration
    3. A Typical Method Implementation
    4. Delphi Pascal is a Slightly Different Language
  9. An interface file in C++
    1. Class Description of Card
    2. Implementation of the card abstraction
    3. Parts of a Member Function
    4. Constructors
    5. C++ Inline definitions
  10. Classes and Methods in Java
    1. Card in Java
  11. Smalltalk Browser

Other Material

Intro OOP, Chapter 3, Slide 1