CP 107 Lecture 13
Introduction
to Classes and Data Abstraction
Lecture
13
We
will cover chapter 6 "Introduction to Classes and Data Abstraction".
Objectives
To
understand the software engineering concepts of encapsulation and data hiding.
To
understand the notions of data abstraction and abstract data types (ADTs).
To
be able to create C++ ADTs, namely classes.
To
understand how to create, use and destroy class objects.
To
be able to control access to object data members and member functions.
Course
Material
Chapter
6 lecture slides (REQUIRED)
Additional
Material from Chapter 7
This is optional. If you wish to
study objects in more details, the slides are attached. Topics are Friend
functions, Copy Constructor, Bitwise copy of an object, Inline functions,
constant data members, constant functions, constant objects and member
initialization.
slide
for lecture 13 (OPTIONAL)
Assignments
for next week
Reading
assignment: Bitwise operator (unless we covered it already), Preprocessor, IO Stream
(topics from Chapter 12, 18)
Pass
out Lab
assignment 10 is due next week