Objects

Introduction

Keys and values

Classes

Representing objects

Representing a single object

Null in objects

Representing a class with a multiple array (ie 2d)

Representing a class with a single array (ie 1d)

Functions with objects

Creating new objects

Getting values by field

Adding fields

Changing values in fields

Hierarchies of objects

Inheritance

Linked lists

Single linked lists

successor and key, null if nec

motivation. don’t need to change who list to add things

Doubly linked lists

successor, predecesor and key, null if nec

Functions on linked lists

read, pop, add

Trees

Trees

Object-Oriented Programming (OOP)

Object-Oriented Programming (OOP)

all variable types are objects. inc integers, floats, lists etc