CMSC 202 Computer Science II, Spring 2007, Section 010x
Lecture 4: Objects & Classes
Thursday 02/08, 2007
[Up]
[Previous Lecture]
[Next Lecture]
Assigned Reading: 6
Slides As Shown:
Topics Covered:
-
Discussed functions with default arguments, which we skipped over last
time. Some examples:
- Discussed nested local scopes in this example:
scope1.cpp,
scope1.txt
- Discussed basic syntax for defining and using C++ classes
(see slides). Looked at the simple example of DayOfYear class from
the textbook:
DayOfYear1.h,
DayOfYear1.cpp,
doytest1.cpp.
- Discussed encapsulation/data hiding (see slides).
[CSEE] |
[CMSC202] |
[Spring '07 CMSC202]
Last Modified:
8 Feb 2007 12:14:49 EST