COMP 303 Lecture Notes - Lecture 17: Unit Testing

19 views1 pages

Document Summary

18 re ection (not on exam: textbook chapters 7. 6. The ability given to a program to analyze itself. In lisp, your program can look at it"s own code & can edit it"s own code at run time (i. e. a for loop) Also has powerful tools like re ection, evaluation, replacement. In java, you can look at the code, but you can"t edit. Class asuper = rectangle. class. getsuper(); // null or reference class[] interfaces = rectangle. class. getinterfaces(); Field[] elds = math. class. getdeclaredfields(); for (field f : elds) if (modi er. isstatic(f. getmodi ers()))

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