Objects and Classes

A simple exercise - Creating a 2D Point Class

Another exercise - Creating a 2D Point Class, and using in a Polygon class

Using Point in Polygon

Adding a new Point to vertices

Adding a new Point to vertices

Completing the Polygon class

Yet another example, a social network

Suppose you're in the year 2004 and had this great idea...

You decide you want to build the basic data infrastructure of your website first

The first step on your road to success, fame and $$$

You decide you want to build the basic data infrastructure of your website first

Now you want to test your software with fake data

You want to test your software with randomly generated people

To do this, you would like to generate a social network with randomly generated Person objects, each one with randomly assigned firends

Now that you have a simulated social network, you are ready for pitching your idea

You want to generate silly statistics that would attract investors to your new startup

Resources

/