CIS 29 - Notes for Tuesday, 2/9

Announcements and Reminders

Recording

Comments on Assignment 4


How/where to make a class abstract
Missing deletes
Overuse of virtual inheritance

SFML - Beginning Animation


Namespaces

  • A namespace is a group of types, variables, or objects.
  • Namespaces are used to avoid name clashes - two different sources using the same symbol or type name.
  • The keyword, namespace is used to create a namespace or to reference a namespace.
  • A namespace may be created in multiple parts.

Example 11-1 - Create a namespace

Example 11-2 - Namespace scope

Example 11-3 - Namespaces and multiple files


Midterm

These topics are fair game:
  • conversion operators
  • explicit constructors
  • using, typeid
  • binary file I/O
  • C++ casts
  • C++ 11/14/17/20 features
  • string, stringstream classes
  • bit level concepts/operations
  • multiple inheritance
  • exception handling
  • namespaces
Midterm will be start at 1:30 and end at 3:20 pm.  It will be online and timed.