CS 2110 Lecture Notes - Lecture 4: Test Case

49 views2 pages

Document Summary

Iii: test case: set of input values, together with the expected output, develop test cases from method specs, even before writing the actual method. Static: static methods and variables are associated with the class, not a specific object, allows you to call methods without creating a new object to use them, only one copy (no copies are created when objects are instantiated) Class object: every class that does not extend another extends class object, has methods tostring, equals, and hashcode. Design notes: do not use extends just to get acess to hidden members, a should extend b only if a is a b. Inheritance hierarchy should reflect modeling semantics not implementation shortcuts. Name of the object: contains a pointer to the object (its address in memory, variable c declared as phd c; contains the name of the object (pointer to the object) and not the actual object.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents