Test 3 study guide

Test 3 study guide - CSCI 111 - Computer Science I Test 3...

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

View Full Document Right Arrow Icon
CSCI 111 -- Computer Science I Test 3 Study Guide Spring 2006 General : Study the "end-of-the chapter' exercises; programming assignments; class notes; powerpoint slides; vocabulary; and of course reading the chapters will help as well. Chapter 7: Object-Oriented Programming, Part 2: User-defined Classes Vocabulary : 1. Class - Combines data and the methods that operate on the data 2. Client of a class - A program that instantiates objects and calls methods of the class 3. instance variables - data for each instance of the object. 4. class data - static data that all instances of objects defined by the class share. Only one copy is maintained. 5. Fields - instance variables and/or class data. 6. Members - fields and methods 7. Access (visibility) Modifier - determines access rights for the class and its members and defines where the class and its members can be used. 8. public - Class or member can be referenced by methods of the same class, and methods of other classes 9. private - Class or member can be referenced by methods of the same class only 10. protected - Class or member can be referenced by methods of the same class, methods of subclasses, and methods of classes in the same package 11. package access - (defaut when no access modifier is used ) Class or member can be referenced by methods in the same package only. 12. accessor method - a public method that enables a client to view the data of the class. 13. mutator method - a public method that enables a client to change (mutate) the data of the class. 14. this - a reference maintained by all objects to reference to "itself". 15. toString method - Returns a String representing the data of an object. 16. class variables - (static variables) One copy of a static variable is created per class. Unlike instance variables, static variables are not associated with object instances. 17. class methods - (static methods) Often defined to access and change static variables; cannot access instance variables: static methods are associated with the class, not with any object. 18. enum - Special class definition designed to increase the readability of code.
Background image of page 1

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

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

This test prep was uploaded on 04/07/2008 for the course CSCI 111 taught by Professor ? during the Fall '06 term at Ole Miss.

Page1 / 4

Test 3 study guide - CSCI 111 - Computer Science I Test 3...

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

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