{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Quiz5.wi11 - Signature cs8w CSE 8A Quiz 5 Winter 2011 Name...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Signature _____________________ CSE 8A Name ________________________ Quiz 5 cs8w ____ Winter 2011 Student ID ____________________ This quiz is to be taken by yourself with closed books, closed notes, no electronic devices. Matching: _____ Field/Data in an object _____ Messages sent to objects _____ A way to create a new object _____ Code to initialize a newly created object _____ Must be the same name as the class name _____ Refers to the object being sent a message inside a method _____ Must have a return type in its header _____ If uninitialized, has no default value (garbage) _____ Must not have a return type as part of its header _____ Return type for accessors/getters _____ Can only be accessed by its simple name, no reference qualifier _____ By Java naming convention, starts with an uppercase letter _____ A sometimes "better" return type for mutators/setters _____ Methods or constructors that have the same name but differ in the number, type, or order of parameters _____ Most instance variables should be this access mode _____ Most methods and constructors should be this access mode A) private B) instance method C) class / class name D) boolean E) instance variable
Image of page 1

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

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}