Change Contents of the Bubble
View this PageEdit this PageUploads to this PageHistory of this PageHomeRecent ChangesSearchHelp Guide

Midterm exam 1 review Fall2005: Short Essay

Back to Midterm Exam 1 Review Fall2005

Questions? Answers? Comments?



A. reuse existin code and you can clarify the simple things like in simple picture you clarify stuff like getHeight that isn't in picture. it's all about inheritance.

B.a public method is a method that anyone can use and private is not accessable to anyone. usually with a private method you don't want the users messing with what you've written, so it's pretty safe from hackers

C. Static methods are called without using referance to the class. it's used with .notation like pickAFile() or Picutre p = Picture.reduceGreen("bj;ajf;ieojgaj;efr"); static methods are known to their class not to individual objects/variables.

D. does not return anything

E. you set a value to null when an object will eventually have a value and doesn't have one at the moment.

uhh feel free to correct me or add something because some of these are a bit wishy-washy

Removed at KS request

Sounds good to me.
Student159

just a thought to add to E

E. also used for ending loops such as when traversing a linked list. a placeholder before values have been input.
Student165

On A. – but what IS inheritance? C. Static methods are known to instances, too – you just don't have to have a method. E. only SOME variables can be null. int a=null doesn't make sense. Mark Guzdial



Link to this Page