Objectives

Chapter 7: Using Object-Oriented PHP

  • Explain basic concepts related to object- oriented programming
  • Use the Date, Number, and Math objects
  • Define your own custom JavaScript objects
Assignments and Due Dates
Assignments and Due Dates: View
Highly Recommended Tutorials

Tutorials: W3Schools.com - Read about the classes and they try out some of the examples as needed.

Math

Dates

Number

JavaScript OOP Programming by Adam Khoury
I realize that these videos are a bit long, but if you are new to OO or need to see how it is implemented in JavaScript one or more of these videos may be worth your time.

JavaScript Tutorials by Venkat Pragim Technologies

JavaScript Object Oriented Programming by Derek Banas
Another explanation... choose which ever helps you the most.

Required Sample Code

Completed sample code from Chapter 07    JS6eTextCode_Chapter07
Download the zip file and extract it.

The sample code prepared specifically for CS2513    CS2513ClassCode_Chapter07

    • DateClass.html
      Use the Date object to display dates in various formats.
Supplemental Materials
  1. PowerPoint from Text: CS2513GosselinJS_CH07 - View (ppt) | Print (pdf)
Software

For this week's website assignment you will need to have images of your choosing which are a specific height and width. If you to not have images of your own or need to resize images, the following resources may be helpful.

ImageQuest DataBase- OCCC's Library

https://librarynt.occc.edu/login?url=http://quest.eb.com
If an MLA citation is required include it at the bottom of the main content area. These images can be used for educational purposes only and may not continued to be used outside that realm.

PicMonkey - Online Photo Editing

PicMonkey http://www.picmonkey.com/ is online photo editing site that I have used when creating online photobooks. While I am not aware of any issues and have not had any personally, it is still not an endorsement of the product. As with any website, Use at your own risk. At the time of this writing you do not need to sign up for or purchase Royale. If you MouseOver/Click Edit at the top of the screen and you should have access to the necessary tools.

 

Chapter Questions and Test Reviews

Chapter Review Questions
Source for quiz and test questions. It is highly recommended that students know the answers.

Chapter 7: Review Questions (.rtf file)
Test 3: Review Sheet

Required Assignments

CSP07 - Object Oriented JavaScript: Specifications
     (Complete, upload to Apollo1, then submit URL in the LMS)
Weekly Quiz: Chapter 7 (Located in the LMS)

Professor's Class Notes and Comments

 

Object Oriented Programming is implemented differently in JavaScript than in programming languages such as C++, C#, Java, or VB. So, if you are new to Object Oriented or need assistance in how it is implemented in JavaScript, there is good set of video links above under "Highly Recommended Tutorials". Granted one or more is a bit lengthy considering what needs to be done this week. However, all or sections of them may prove beneficial and actually decrease your overall time for understanding this week's material.

P. 491, 511

If the concept of objects creaed an object literal and using a constructor function is still a bit confusing, watch the Part 54: Object Literal vs Constructor video. The link in is Highly Recommended Vidoes in the blue menu area at the top of the page.

P. 496

Sub-object is term I have not heard a great deal. Nested objects is the term for the same situation with which I am personally more familiar. So be sure to add both terms to your JavaScript vocabulary.