CSC 120 Lecture Notes - Lecture 6: Type Signature, Function Overloading, The Monthly

24 views27 pages
champagnegnat971 and 18 others unlocked
CSC 120 Full Course Notes
26
CSC 120 Full Course Notes
Verified Note
26 documents

Document Summary

If an actual parameter is not a variable, the value of the variable is used. If an actual parameter is a math formula, the value of the formula is used. In a java class multiple methods having an identical name and pairwise distinct signatures can be defined method overloading. If the method has overloading, the java compiler picks the one that matches the type signature of the call: example: system. out. println, example: method1(string x, string y), method1(string x , double y) Name what it computes sin cos tan asin acos atan sqrt cbrt log log10 signum exp ceil floor round abs. The i(cid:374)(cid:448)erse of si(cid:374)e, retur(cid:374) (cid:448)alue i(cid:374) [ /(cid:1006) , /(cid:1006) ] The i(cid:374)(cid:448)erse of (cid:272)osi(cid:374)e, retur(cid:374) (cid:448)alue i(cid:374) [(cid:1004), ] The i(cid:374)(cid:448)erse of ta(cid:374)ge(cid:374)t, retur(cid:374) (cid:448)alue i(cid:374) [ /(cid:1006) , /(cid:1006) ] The sign of the number, -1. 0, 0. 0, or +1. 0. The exponential function with base of the natural log. The smallest whole number that is >= parameter.

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