Tutorial — Creating New Objects

A Less-Simple Class

This page is a work in progress.
(Early in its progress.)

Introduction

Now that we know how to write a basic new object constructor, we can continue with some advanced techniques.

Version 6

We start where the last page left off: with a Point(x,y) constructor function we use to create new Point objects. Our last version had robust initialization and implemented a few methods.

Version 7