Learning Outcome
At the end of this lesson, you will be able to:
- understand and create a basic class, then create an object from the class
Silent Watching
Review
Lesson
- go over "Using OOP", Chapter 6
- Computer Based Problem Solving
- read "What is an Object"
Activity
- read over what a "Stack" is
- you can also look at this and this for help
- look at my VB version of a stack (see below)
Daily Assignment
- consider a basic 3-number combination lock
- taking into account what you read above, answer (on today's page) each of the questions that follow?
- What is the lock's function?
- Keeping in mind your answer to question number 1, what properties or characteristics would you use to describe the lock?
- Describe the lock's behaviours - again, keep in mind what the function of the lock is and how it would perform that function?
- re-create the MrCoxallStack from below
- we will continue to improve it over several days
- make sure the "MrCoxallStack" class is in a separate file from the use of the stack class (your main)
- for now, make your class implement "push"
- make your stub program just create a stack instance at this point and then use the "push" method
Extra
- work on the weekly assignment