π« Project 5 due 9PM Sunday, March 6th
π³Β Final Exam online
π€Β Optional quiz as mentioned in class.
β
this weekβs slides: bit.ly/cs31w22_week9
last weekβs slides: bit.ly/cs31w22_week8
home page: bit.ly/cs31w22
credit: nikki woo+zhehui+rosemary
// vs. structs: <https://www.geeksforgeeks.org/structure-vs-class-in-cpp/>
// they are the same besides their default visibility
// struct: default public
// class: default private
// can copy and paste code from prior notes and replace "struct" with "class"
// and get same behaviour!
// all data members private
In header files, itβs quite easy to end up in a situation where a definition in a header file gets included more than once. This can happen when a header file #includes another header file (which is common).