Module 4: Advanced Classes

Digging deeper into memory issues with classes, dynamic memory and pointers

Language Topics

  • Operator Overloading
  • Deep vs. Shallow Copy
  • Destructor, Copy Constructor and Assignment Operator
  • Templates
  • Intro to Inheritance
  • Intro to Binary Trees

Textbook chapters 7.12, 8.4-8.6, 8.9-8.12, 13, (briefly 10, 18)

Homework Assignment

Mixer

Due Tue, May 9 by 11:59pm

Tue, Apr 18 (week 13)

Exam recap

Homework 2 questions

Thu, Apr 20

Class Memory Issues

  • Shallow vs. deep copy
  • Destructors
  • Operator overloading
  • Copy constructor, assignment operator
  • Pass by const reference (avoid copy)
  • Return by reference (avoid copy)

Tue, Apr 25 (week 14)

Meet in ACSB 2.120 (lab)

Lab: Soundwave

Thu, Apr 27

Tue, May 2 (week 15)

Thu, May 4

Study Day

No class

Review (Q&A) from 9:30-10:45 in classroom

Finals Week

Tue, May 9

Homework 3 due by 11:59pm

Thu, May 11

Final Exam 8am-9:45am, in the regular classroom