Today we talked about classes. Out loud, I made a bunch of points including:
private vs public members in a class. (What happens if I don't specify private OR public?)
Syntax for declaring a class and its member functions at the top of our file.
Syntax for defining a class's member functions at the bottom of the file.
(Remember to add ClassName::)
What constructors mean, and syntax for defining and calling them.
Use of multiple constructors for the same class.
Const member functions - when to use them and why.
We wrote the code example temperature.cpp,
which demos most of the functionality above.
Here are some Google searches you could try if you're having trouble with today's material.
I'm deliberately trying to choose search terms that you could have thought of yourself!
c++ class example
c++ private vs public member
c++ member function const