CS35: Data Structures and Algorithms

Week 02 Lecture Notes

Week 02 Tasks

Tuesday

Agenda

Our C++ programs so far consist of a sequence of statements that contain:

Object Oriented Programming

Objects are "blobs" that contain a bit of data and a bit of code

A Class is the blueprint of an object. It describes the attributes and implementation of the behaviors.
An Object is an instance of a class which (usually) holds explicit values for each attribute.

C++ Class Syntax

Example of a Point class.

Topics covered:

Thursday

Agenda

Pointers

Dynamic Memory