Return to Jeff's Main Page

CS1 at Oswego

Hypertexknowlogy

Frequently Asked Questions

 
My Intro to Object-Oriented Programming  
 
 
 
Class Notes

Wednesday August 30 , 2000
 
Class started with CG defining ``computer'' (see definitions).   CG also discussed our approach to learning Java by using a ``template-based,  slot-and-filler'' scheme.  

CG noted the importance of writing code clearly,  since we want it to be easily read by others,  archived properly,  and re-used more easily.  

CG introduced me to my first Java program through a presentation of ``Hello World!   ''.   In the code line - IO.println (``Hello World!   '');  - the IO portion is an object,  and println (``Hello World!   '') is a message.  

CG then stated the following remark:   The basic mechanism of computation in object-oriented programming is the sending of messages to objects which respond with some form of behavior.   In the sole executable instruction of the ``Hello World!   '' program,  the message println (``Hello World!   '') is sent to the object IO which responds behaviorally by printing the string ``Hello World!   '' to the standard output file.  

CG then provided numerous definitions:   object-oriented programming,  message send,  variable,  variable declaration,  and Java application template.