cs141_02 - Using Java Objects Using Objects Mixing objects...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
05/10/10 cs141_02 - Using Java Objects 1 Using Java Objects Using Objects Mixing objects and data types Purpose of the toString method Robert Stumpf, Ph.D. CIS Department
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
05/10/10 cs141_02 - Using Java Objects 2 Using Objects Messages are usually sent to variables Variables point to objects Messages invoke a method in object’s class Messages may have arguments Messages may also be sent to classes directly Methods may return a response
Background image of page 2
05/10/10 cs141_02 - Using Java Objects 3 Using Objects Example messages without arguments sent to variables With no response window.show ( ); With a response. inputLine = fileIn.readLine ( );
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
05/10/10 cs141_02 - Using Java Objects 4 Using Objects Example messages with arguments sent to variables With no response window.reshape (0, 0, 600, 400); With a response. value = dictionary.get (key);
Background image of page 4
cs141_02 - Using Java Objects 5 Using Objects Example messages without arguments sent to
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/06/2010 for the course CS 324 taught by Professor Prof.rama during the Spring '10 term at Lamar University.

Page1 / 13

cs141_02 - Using Java Objects Using Objects Mixing objects...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online