CS 70

Lesson 1

Today's lesson will introduce classes and objects in C++!

We'll address the following learning goals from Group 3 and Group 5:

  • Goal 3C (Program Organization):
    • Explain the division of code into header and source files.
    • Use #include directives to ensure that declarations of variables, classes, functions, etc. are visible.
  • Goal 5B (Lifetime Timing):
    • Identify where in a program each phase of lifetime (allocation, initialization, use, destruction, deallocation) happens for an instance of a class.
  • Pig speaking

    I want to learn MORE C++ syntax please! Some is good, but LOTS is better.

  • LHS Cow speaking

    You get your wish!

  • Hedgehog speaking

    Oh, no!!

  • LHS Cow speaking

    Don't worry if it doesn't all fit in your head right away!

  • RHS Cow speaking

    You can come back to these pages for details when you code; familiarity will come with experience!

Outline

(This might be a good time for a stretch break!)

(You might consider taking a break before moving on…)

To receive credit: complete all pages above, then this page will be complete as well (and get a green check emoji at the bottom right of the page).

(When logged in, completion status appears here.)