Wednesday, August 31, 2011

What are you implying?

Today we reviewed the class diagrams assignment from Monday.  Everyone did an excellent job and continues to show improvement.

We also starting our review of typecasting, also known as datatype conversions.  We went over the two different methods of datatype conversions:

Implicit casting
double quotient1 = 7 / 2;

Explicit casting
double quotient2 = (double) 7 / 2;
int quotient3 = (int)(9.99 / 1.11);


Homework: Explain why, in the examples given above, quotient2 returns 3.5, but quotient3 returns 9.

Monday, August 29, 2011

Busy, busy, busy...

I can't believe we're already two weeks into school. We've covered quite a bit of material. Since we were joined by a new student today, we took the opportunity to summarize and review what we've covered thus far.
  • Object Oriented Programming (vs. linear or process-oriented programming)
    • Encapsulation, inheritance and polymorphism
  • Classes and Objects
  • Reference types and Value types, and their respective relationships to the Heap and Stack
  • Various data types: int, long, char, decimal, Boolean, string, etc.
    • Hexadecimal number system (stemming from a question about why numeric data types have the maximum values that they do)
So, to link several of these concepts together we drew up a Class Diagram about a vacation, complete with all of the Objects (classes) that would be used or needed for a vacation, then providing the necessary properties and methods for those Objects.


Homework: Create a Class Diagram describing tonight's football game (you know, the one where the Bruin's are going to stomp CAC... that one).  Make sure to identify at least five Classes, with appropriate properties and methods for each.  This is due on Wednesday. 

Sunday, August 14, 2011

Welcome back to school!

Hello all! I'm very excited about the opportunity to fill-in and teach the first part of this class, and I'm sure we'll have a great time programming and exploring object-oriented concepts together. This year you will learn all about encapsulation, abstraction and polymorphism - and how to apply them in a program.

I'm sure I'll say this in class, but please remember to bring your thumb drive to class every time we meet.

Looking forward to meeting all of you,

Joshua Carroll
Interim Technology Teacher