Discussion 3-7

Today we talked about classes. These basically let you define your own data types. Once you've defined a class, you can make variables of that type, just like you would with the standard types int, double, string, etc.

We adapted our Roman numeral code from last time to use a class instead of two separate arrays. See romanNumeralsClass.cpp.

We started to implement a class called Point2D for keeping track of a point in the xy-plane. See Point2D.cpp for the partial implementation. We'll finish next time!