Docsity

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

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