Lesson 2

Topics covered lesson 2

  • More about functions
    • return type
    • scope of variables
    • arguments
    • overloading of functions
  • Define own datatypes
    • Class vs. Object
    • Private vs. Public
    • Class methods 
  • Program structure (2) 
    • loops


 

Chapters in the book: 

5  (Functions) 
6  (Basic classes) 
7  (More program flow) 



Do the following exercises:

5.1 - 5.7  (p. 125)
6.1 - 6.4  (p.159)
7.1 - 7.9  (p.192)
4.1 - 4.5 (p.87)