Lab 6: The one after five

This is lab 6. This is the 6th lab in a series of many labs. This being the 6th lab, we will now shift our attention to Classes. (Welcome to the Dark Side)

Details

For this lab, we will be making 1 (one) simple class. It will be a class that represents an Address from say a contact book or something like that. It will simply have a first name, last name and address field. The first name is for storing, the first name. The last name is for storing, the last name. The address field is for storing the, ahh, address.

When someone is working with classes typically the details about the class is listed in an Application Programmer Interface or API. Our Address class has an API and you can find it here.

The API details what each method should do. You will use this to learn what each method does and then write the implementation for them.

Requirements

So there isn't much to do for this lab, but here's the list of requirements:

  1. You must declare your Address class in a file called Address.h (notice the capitalization.)
  2. You must implement the methods as described in the API.

For testing this I'll include a main you can run. More or less though, it's not too hard to tell if it's correct by simply looking at your code. This is really similar to the Date we did in class the other day.