Lesson 05

Object Oriented Programming; Arrays of Objects

Individual Post-Class Exercises
  1. Lesson Setup

    1. Review for the exam
      1. Midterm study guide
      2. Sample exam question for the Lesson 05 material - IGNORE THIS!!
    2. Start-of-lecture Slides  (Required)
    3. 'Starter' project for the lesson 05 PCEs (Post-Class Exercises)
    4. Watch the online videos for this lesson and demonstrate your knowledge (Hand-In)
      Download all videos for this lesson (Use the 'Download' menu item)

  2. Thinking About Your Future
    The goal for this exercise is to both get you thinking about what you'll do after you finish at Cascadia, and to help you connect with other people who have similar goals in this class.

    1. Exercise: Thinking About Your Future (Required)
      NOTE:
      You will be required to post two (2) comments on this week's discussion forum.  One of these needs to be a response to someone else's post so please do NOT leave this to the last minute!

  3. Basic Object Oriented Programming (OOP):

    1. VIDEO: OOP Basics   Example Project

      WARNING: The OOP Basics and OOP Encapsulation videos are actually based on Flash (they use .SWF files) so if you download all the videos in a single .ZIP you may not be able to watch those videos on your own computer.  In that case make sure to budget extra time online in order to watch those videos before the Viewing Quiz for these Preview Videos is due!!

    2. VIDEO: OOP Encapsulation  Example Project
    3. VIDEO: OOP: (Instance) Methods, Object Allocation Demo
    4. VIDEO: OOP: Instance Variables
    5. Exercise: Basic Class with instance method (Sect. 9.2)

    6. Exercise: Instance Variables: Adding Data To Your Class (Sect. 4.2+, Sect. 9.2)
    7. Exercise: More Methods: SetValue, SetValues, Print
    8. VIDEO: OOP: Access control (public/private), getter/setter methods

    9. Exercise: Access Control (public, private) (Sect. 9.3) (Hand-In)
    10. VIDEO: Overloading

    11. Exercise: Overloading: Create your own (Sect. 7.12) 

    12. VIDEO: OOP: Constructors

    13. Exercise: Constructors  (Sect 4.9, Sect. 9.6) (Hand-In)
    14. Exercise: Variable Scope (class, instance, local/param vars) (Sect. 7.11) (Hand-In)
  4. Array Of Objects

    1. VIDEO: Basic Array of Objects
      (Note: this link goes to the file that's inside the PCE 05 folder.  There's ALSO a copy of this file inside the PCE 06 folder)
    2. Exercise: Define the Television class (Hand-In)

    3. Exercise: Mixing Arrays and Classes: Array that contains many Television objects (Previous Knowledge) (Hand-In)
    4. VIDEO: Null References Within An Array
      (Note: this link goes to the file that's inside the PCE 05 folder.  There's ALSO a copy of this file inside the PCE 06 folder)
    5. Exercise: Array of (possibly null) objects (Previous Knowledge; Chapter 8 (Page 261 may be useful) ) (Hand-In)
  5. Final Steps

    1. Web Hand-In for post-class exercises and for homework:
      Go to the StudentTracker  web app, and create an account for yourself, and then "enroll" in the course.
      Please submit a .ZIP (and ONLY a .ZIP - not a .RAR, .7z, etc) that contains the Program.cs file, the video outline/viewing quiz .DOCX (or .PDF), any other files you wish to include, and leaves out every thing else (as much as possible).

    2. Make sure that you're working on the next homework assignment. 
      Details are listed on the
      homework assignment page
      The due date is listed on the main page.
    3. Practice what you've learned
      Remember that in order to really learn this stuff you're going to need to practice it.  Go back and redo the exercises from this lesson until you've really got it down.  Go back to the prior lesson(s) and review and redo that.  Make sure that you've really got this stuff in your head (and remember that it gets easier each time you redo the work)!
 
In-Class Materials:

These materials are used by students in the hybrid class during leture time.  Online students can safely ignore everything in this 'In Class Materials' box.

In-Class Materials:

Instructor's Materials:

Videos recorded during class (of the In-Class Exercises):