Week 3 Day 1 - Why we ADT
Channel:
Subscribers:
2,700
Published on ● Video Link: https://www.youtube.com/watch?v=raQBzrI7TFE
Today we talked about default parameters for functions and constructors to avoid duplicating code, and initializer lists for constructors (again).
Mostly this lecture was justifying why we go to the effort of making constructors, private sections, accessors/mutators, etc., instead of just using a struct plain old data (POD) using an example from IS50B from last night - if you want to maintain a class invariant, there's no good way to do that with a POD.
Other Videos By Bill Kerney
Tags:
csci 41
adt
default parameters