In lecture today, the following topics were covered:
- continued discussion of the header and cpp files for classes in C++
- the notions of abstraction and encapsulation
- the compilation process for classes
- private and public attributes for variables/methods
- the special functions: constructors, destructors
Here is the complete set of files for the Rectangle class we developed in class:
- the Rectangle definition: Rectangle.h, Rectangle.cpp
- use of Rectangles in main: rectangleMain.cpp