Lecture 4 - Slide 2 : 40
Class basics
We introduce classes in C++ in a series of versions of class Point - starting with a C# counterpart
Class Point in C#.
Class Point i C++ together with a main function - member functions defined in class definition.
The class design of class Point.
Member function definitions for class Point.
Class Point - with in-class initializations.
Definition of function members.
In C++
Class design
is emphasized by separating class definition from member definition