Monday, September 1, 2008

Lesson 6 - Part 1

Coder's Log: 2008.08

I just finished lesson 6A. Whew... I may need to review/revisit this lesson...
Lesson 6: Object Oriented Programming Fundamentals

This lesson has two videos and explains the fundamentals of object-oriented programming. It covers the differences between a class and an object. You’ll learn how to create and use properties and methods, as well as inheritance and encapsulation.

Video Duration:
Part 1 – 32 minutes, 46 seconds
Notes:

  • Object Oriented Programming
  • Class - the blueprint/recipe for an object
  • Object -instance of a class
  • Properties - attributes of our class. instances may have different property values, but they have the same property definitions
  • Fields - variables that hold property values
  • Property Get and Set statements - access and modify underlying field
  • Private "m_" - defining field
  • Public - defining property
  • Get - return private field value
  • Set - assign underlying field value
  • Methods - "actions" that can be performed by the class
example:
A "Dog" class:
- Properties: Height, Weight, Breed
- Methods: Run, Jump, Bark
  • the methods depend on the properties.
  • methods can accept parameters
  • Function
  • Sub
  • Variable Scope

No comments: