102: Object Oriented Programming

This is the computer programming course 102, an introduction to object oriented programming. In this course we introduce the concept of object oriented programming, reusing code through objects, and explore objects in several programming languages.

Each day we build our understanding of object oriented programming and foster the development of good programming practices. We will introduce programming constructs in small steps while taking the occasional break to create discuss how to write computer software.

Day 1

Day 2

  • Examples of objects in a few languages
  • TObject
  • TException
  • TPersistent
  • TComponent
  • TControl
  • TCollection
  • TStrings
  • TStream
  • TGraphic
  • TCanvas
  • TDataSource

Day 3

  • Write a program using only objects
  • Our example program
  • Recreating the example
  • A look inside

Day 4

  • Declaring a class
  • Instances
  • Inheritance
  • Functionality
  • Fields
  • Methods
  • Properties
  • Reading and writing properties
  • Constructors and destructors

Day 5

  • Writing a file search class
  • Gathering requirements
  • Useful file searching routines

Day 6

  • File Search Utility
  • Main Screen
  • Main Unit
  • Expanding Units
  • Grid Unit
  • Non Visual Units