Classes, Lecture Notes - Computer Science, Study notes of Introduction to Computers

Classes, Constructor, Methods, Private and Public Objects, Static Fields

Typology: Study notes

2010/2011

Uploaded on 10/07/2011

rolla45
rolla45 🇺🇸

4

(6)

133 documents

1 / 13

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
1 of 13
pf3
pf4
pf5
pf8
pf9
pfa
pfd

Partial preview of the text

Download Classes, Lecture Notes - Computer Science and more Study notes Introduction to Computers in PDF only on Docsity!

Lesson: Classes Long way: Short wey: int x? int x = 33 x= 37 Long way: Short way: Color cr Color ¢ = g.getcolor (loc); e = g.getcolor (loc); He You can declare and initialize a variable on a single line. You still need to understand the difference between declaring and initializing!!! 1 of 13